Skip to content

Conversation

@cbrzn
Copy link
Contributor

@cbrzn cbrzn commented Feb 16, 2022

We had a logic where if the london block was zero and the baseFeePerGas undefined, we would set the baseFeePerGas to 1000000000, otherwise, it would be undefined, this would not allow us to set the baseFeePerGas on the genesis initialization when parsing it with geth format. Now this logic has been moved to the block package (It was done by Ryan a few weeks ago)

Copy link
Member

@jochem-brouwer jochem-brouwer left a comment

Choose a reason for hiding this comment

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

Great PR, one comment.

@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #1720 (d610633) into master (8a316ec) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

Flag Coverage Δ
block 85.57% <ø> (ø)
blockchain 83.28% <ø> (ø)
client 72.07% <100.00%> (+0.07%) ⬆️
common 93.89% <ø> (ø)
devp2p 82.50% <ø> (ø)
ethash 90.76% <ø> (ø)
trie 86.18% <ø> (ø)
tx 89.94% <ø> (ø)
util 92.62% <ø> (ø)
vm 81.19% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@holgerd77
Copy link
Member

Please let Ryan have a look on this as well before merging, I guess he has got some insight here on the original implementation.

params.genesis.hash,
'0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a'
)
t.equals(params.genesis.baseFeePerGas, json.baseFeePerGas)
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@ryanio ryanio left a comment

Choose a reason for hiding this comment

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

Thanks, looks perfect!

@ryanio ryanio merged commit f4f34c8 into master Feb 16, 2022
@ryanio ryanio deleted the chore/geth-genesis-parser-minor-fix branch February 16, 2022 19:27
cbrzn added a commit to cbrzn/ethereumjs-monorepo that referenced this pull request Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants