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

cmd/geth, cmd/evm, params: implement Arrow Glacier (EIP 4345) #23810

Merged
merged 5 commits into from
Oct 28, 2021

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Oct 26, 2021

This PR adds support for ArrowGlacier, as defined by

Starting with FORK_BLOCK_NUMBER the client will calculate the difficulty based on a fake block number suggesting to the client that the difficulty bomb is adjusting 10,700,000 blocks later than the actual block number.

This also adds support for evm t8n to return the calculated difficulty, so it can be used to construct test.

cc @marioevz @timbeiko

@holiman holiman linked an issue Oct 27, 2021 that may be closed by this pull request
@marioevz
Copy link
Member

Tested using ethereum/tests#972, ethereum/retesteth#153.
LGTM.

Copy link
Member

@MariusVanDerWijden MariusVanDerWijden left a comment

Choose a reason for hiding this comment

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

LGTM

@holiman holiman added this to the 1.10.12 milestone Oct 28, 2021
@holiman holiman merged commit 32150f8 into ethereum:master Oct 28, 2021
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Oct 29, 2021
@holiman holiman deleted the arrow_glacier branch November 10, 2021 18:32
yongjun925 pushed a commit to DODOEX/go-ethereum that referenced this pull request Dec 3, 2022
…um#23810)

This PR adds support for ArrowGlacier, as defined by

    https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md
    https://eips.ethereum.org/EIPS/eip-4345

> Starting with FORK_BLOCK_NUMBER the client will calculate the difficulty based on a fake block number suggesting to the client that the difficulty bomb is adjusting 10,700,000 blocks later than the actual block number.

This also adds support for evm t8n to return the calculated difficulty, so it can be used to construct test.
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.

evm t8n returns incorrect difficulty on --state.fork Berlin
3 participants