-
Notifications
You must be signed in to change notification settings - Fork 867
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
Implement eth/67 sub protocol (EIP-4938) #4646
Implement eth/67 sub protocol (EIP-4938) #4646
Conversation
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
… mocked Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
…tinalia/besu into 4596-eth67-protocol
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks nice and simple! Did you test it out on a node running fast sync?
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthProtocolManager.java
Show resolved
Hide resolved
...reum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/EthProtocolManagerTest.java
Show resolved
Hide resolved
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthProtocolManager.java
Show resolved
Hide resolved
// Fast sync depends on GetNodeData and NodeData | ||
// Do not add eth/67 if fast sync is enabled | ||
// see https://eips.ethereum.org/EIPS/eip-4938 | ||
if (!Objects.equals(SyncMode.FAST, synchronizerConfiguration.getSyncMode())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious to know why you are using Object.equals instead of just doing SyncMode.FAST == synchronizerConfiguration.getSyncMode()
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@gmail.com>
This reverts commit 7c35be3.
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Gabriel Trintinalia gabriel.trintinalia@gmail.com
PR description
eth/67 (EIP-4938, March 2022)
Version 67 removed the GetNodeData and NodeData messages.
Besu:
Fixed Issue(s)
fixes #4596
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog