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

eth: eth/64 - extend handshake with with fork id #20140

Merged
merged 1 commit into from
Oct 30, 2019

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Sep 30, 2019

This PR extends the eth protocol's handshake with a fork id field as defined in https://eips.ethereum.org/EIPS/eip-2124, and bumps the version number to eth/64 (old eth/63 is supported side by side of course).

The fork ID was designed to help split the network in case some nodes upgrade and some don't, but both chains progress (typical for test nets during hard forks). With this code in place, Ropsten would now (Istanbul forking) be able to cleanly split itself between updated nodes and non-updated ones.

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

Should also note in the PR description that this PR drops support for eth62

eth/protocol.go Outdated Show resolved Hide resolved
@karalabe
Copy link
Member Author

karalabe commented Oct 1, 2019

eth62 was dropped a long time ago, this just removes some leftovers.

eth/helper_test.go Outdated Show resolved Hide resolved
@karalabe karalabe force-pushed the eth64-handshake-forkid branch 2 times, most recently from 2ce5f3a to 9e542de Compare October 17, 2019 07:59
@karalabe karalabe added this to the 1.9.7 milestone Oct 29, 2019
@karalabe karalabe changed the title eth: eth/64 - replace handshake genesis hash with fork id eth: eth/64 - extend handshake with with fork id Oct 29, 2019
@karalabe karalabe merged commit 93422e9 into ethereum:master Oct 30, 2019
@wanwiset25 wanwiset25 mentioned this pull request Jun 3, 2024
19 tasks
wanwiset25 added a commit to XinFinOrg/XDPoSChain that referenced this pull request Jun 19, 2024
wanwiset25 added a commit to XinFinOrg/XDPoSChain that referenced this pull request Jun 28, 2024
wanwiset25 added a commit to XinFinOrg/XDPoSChain that referenced this pull request Aug 23, 2024
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.

4 participants