Skip to content

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

stevencartavia
Copy link
Contributor

closes #15510

@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker Apr 20, 2025
@mattsse mattsse added the C-enhancement New feature or request label Apr 22, 2025
Copy link
Collaborator

@mattsse mattsse left a 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>>),
Copy link
Collaborator

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?

Comment on lines 193 to 207
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))
Copy link
Collaborator

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

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker May 1, 2025
@mattsse mattsse added the A-networking Related to networking in general label May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general C-enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Introduce Receipt69 variant
2 participants