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: add SealedBlock in reth-primitives-traits #13735

Open
wants to merge 98 commits into
base: main
Choose a base branch
from

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jan 8, 2025

closes #13626

closes #13747

This unifies BlockWithSenders and SealedBlockWithSenders into RecoveredBlock
adds various constructors and conversion between SealedBlock <-> RecoveredBlock

Changes overview

  • unifies BlockWithSenders and SealedBlockWithSenders into RecoveredBlock
  • Make SealedBlock generic over B: Block, but keep the header,body fields
  • Use lazy hashing in SealedHeader

I've kept the aliases but these are now marked as deprecated

@mattsse mattsse added the A-sdk Related to reth's use as a library label Jan 8, 2025
Comment on lines +804 to 806
pub block: Arc<SealedBlock<N::Block>>,
/// Block's senders.
pub senders: Arc<Vec<Address>>,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this can be simplified in a next step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sdk Related to reth's use as a library M-changelog This change should be included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify BlockWithSenders types make SealedBlock a wrapper of hash + Block
2 participants