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

chore: make CanonicalInMemoryState generic over sealed header and block #12835

Merged

Conversation

syjn99
Copy link
Contributor

@syjn99 syjn99 commented Nov 24, 2024

Closes #12816

Copy link
Member

@emhane emhane left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines 161 to 165
type PendingBlockAndReceipts<N> = (
SealedBlock<<N as NodePrimitives>::BlockHeader, <N as NodePrimitives>::BlockBody>,
Vec<<N as NodePrimitives>::Receipt>,
);

Copy link
Member

Choose a reason for hiding this comment

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

use reth_primitives_traits::ReceiptTy instead and make new type aliases BodyTy and HeaderTy in the same file and use those instead too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added at 78ebe4e

@syjn99 syjn99 marked this pull request as ready for review November 25, 2024 08:20
@klkvr klkvr added this pull request to the merge queue Nov 25, 2024
Merged via the queue into paradigmxyz:main with commit caac226 Nov 25, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace header and body in impl of CanonicalInMemoryState
3 participants