-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: introduce Receipt69 variant #15827
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
base: main
Are you sure you want to change the base?
feat: introduce Receipt69 variant #15827
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.
cool, ty. almost there, some additional nits
what we also need is proper version aware encoding and decoding
https://github.com/paradigmxyz/reth/blob/main/crates/net/eth-wire-types/src/message.rs#L115-L115
feature = "serde", | ||
serde(bound = "N::Receipt: serde::Serialize + serde::de::DeserializeOwned") | ||
)] | ||
Receipts69(RequestPair<Receipts<N::Receipt>>), |
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.
this should use the 69 variant, right?
crates/net/network/src/message.rs
Outdated
Ok(res) => { | ||
let receipts = res | ||
.into_iter() | ||
.map(|batch| { | ||
batch | ||
.into_iter() | ||
.map(|r| ReceiptWithBloom { | ||
receipt: r, | ||
logs_bloom: Default::default(), | ||
}) | ||
.collect() | ||
}) | ||
.collect(); | ||
let request = RequestPair { request_id: id, message: Receipts(receipts) }; | ||
Ok(EthMessage::Receipts69(request)) |
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.
this is unneccessary if we use the 69 varaint for Receipts69, see above
9bb89fa
to
018f6d6
Compare
closes #15510