-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(eth69): support for ETH69 #12158
Conversation
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.
great first step, some suggestions
@@ -1669,6 +1669,7 @@ impl PooledTransactionsHashesBuilder { | |||
match version { | |||
EthVersion::Eth66 | EthVersion::Eth67 => Self::Eth66(Default::default()), | |||
EthVersion::Eth68 => Self::Eth68(Default::default()), | |||
EthVersion::Eth69 => todo!(), |
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.
we can treat this the same as 68 here
EthMessage::NewBlockHashes(NewBlockHashes::decode(buf)?) | ||
} | ||
EthMessageID::NewBlock => EthMessage::NewBlock(Box::new(NewBlock::decode(buf)?)), | ||
EthMessageID::NewBlock => { | ||
if version == EthVersion::Eth69 { |
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.
use is_eth69
yeah for this we need an entirely new Status type or make it optional, need to take a look at the spec first |
Signed-off-by: Abhishekkochar <[email protected]>
@mattsse failed tests are unrelated to changed code here. |
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.
lgtm,
I think next we need to make some changes to Status
, let me track that first
fixes #10659