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

feat: remove default receipts for network components #13371

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Dec 12, 2024

Removes some default Receipt types, replacing with the associated type from NetworkPrimitives.

@Rjected Rjected added A-networking Related to networking in general A-sdk Related to reth's use as a library labels Dec 12, 2024
@Rjected Rjected added the C-enhancement New feature or request label Dec 12, 2024
@Rjected Rjected changed the title feat: remove default receipts down for network components feat: remove default receipts for network components Dec 12, 2024
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.

nice,

ones suggestion

Comment on lines 205 to 209
.map(|receipt| {
// TODO: use `into_with_bloom` on new alloy release
let bloom = receipt.bloom();
ReceiptWithBloom::new(receipt, bloom)
})
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe map(ReceiptWithBloom::from) should work here

Copy link
Member Author

Choose a reason for hiding this comment

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

oh nice, yep

Comment on lines +665 to +666
Node::Provider:
BlockReader<Receipt = N::Receipt, Block = N::Block, Header = N::BlockHeader>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

once merged we can add a type alias for this BlockReaderFor<N>

@Rjected Rjected force-pushed the dan/remove-default-receipts branch from a5cb6b4 to 7687d11 Compare December 12, 2024 23:13
@Rjected Rjected added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 02f76b8 Dec 13, 2024
42 checks passed
@Rjected Rjected deleted the dan/remove-default-receipts branch December 13, 2024 00:12
emhane pushed a commit to ethereum-optimism/op-reth that referenced this pull request Dec 13, 2024
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 A-sdk Related to reth's use as a library C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants