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: move serde bincode compat bound to NodePrimitives #13393

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Dec 13, 2024

This moves BlockBody: SerdeBincodeCompat bound to FullBlockBody and enforces Full* bounds directly on NodePrimitives. This is needed to allow using reth_primitives::BlockBody by just bounding transaction with T: SignedTransaction

We can't make bincode compat a supertrait of SignedTransaction because we need it to be implemented in pooled transaction as well which is never being bincode serialized

This essentially makes NodePrimitives same as FullNodePrimitives which makes sense imo because there's not much benefit in implementing NodePrimitives for a set of types which can't be used for all of the components

@mattsse mattsse added this pull request to the merge queue Dec 13, 2024
@mattsse mattsse added the A-sdk Related to reth's use as a library label Dec 13, 2024
Merged via the queue into main with commit 138004b Dec 13, 2024
43 checks passed
@mattsse mattsse deleted the klkvr/chore-move-bincode-compat branch December 13, 2024 19:48
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants