Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jaipur fork #269

Merged
merged 13 commits into from
Dec 15, 2021
Merged

jaipur fork #269

merged 13 commits into from
Dec 15, 2021

Conversation

temaniarpit27
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Dec 14, 2021

POS-102 Encoding baseFee when calculating headerSignature

Tenderly reported this:

Hey guys, I think you forgot to encode baseFee when calculating headerSignature, here is how it’s working in clique

if header.BaseFee != nil {
, and this is in bor
if err != nil {

The client libs will have the problem with the coinbase value

Updating encodeSigHeader in bor.go would trigger a hard fork

params/config.go Outdated Show resolved Hide resolved
consensus/bor/bor.go Show resolved Hide resolved
consensus/bor/bor.go Show resolved Hide resolved
consensus/bor/bor.go Show resolved Hide resolved
consensus/bor/bor.go Outdated Show resolved Hide resolved
params/config.go Outdated Show resolved Hide resolved
params/config.go Outdated Show resolved Hide resolved
tests/bor/bor_test.go Outdated Show resolved Hide resolved
@@ -111,6 +112,14 @@ func buildNextBlock(t *testing.T, _bor *bor.Bor, chain *core.BlockChain, block *
copy(header.Extra[32:], validatorBytes)
}

if chain.Config().IsLondon(header.Number) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why wasn't this here before? Did the test worked without this? Was it necessary and was running fine?

tests/bor/bor_test.go Show resolved Hide resolved
@ssandeep ssandeep merged commit e2b9385 into v0.2.12-candidate Dec 15, 2021
@ssandeep ssandeep deleted the arpit/pos-102 branch December 15, 2021 11:58
vcastellm pushed a commit that referenced this pull request Jan 11, 2022
* jaipur fork

* add check

* review comments

* test case

* fix few changes

* Change condition

* review comments

* type conversion

* Update mumbai.go

* Update config.go

* Update config.go

Co-authored-by: Ferran Borreguero <ferranbt@protonmail.com>
@MORTEZAMIRSALI
Copy link

c227a07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants