-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: use alloy block types #13518
feat: use alloy block types #13518
Conversation
@@ -12,3 +13,82 @@ pub trait SerdeBincodeCompat: Sized + 'static { | |||
impl SerdeBincodeCompat for alloy_consensus::Header { | |||
type BincodeRepr<'a> = alloy_consensus::serde_bincode_compat::Header<'a>; | |||
} | |||
|
|||
mod block_bincode { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this I had to move because the trait is defined here and is generic over SerdeBincodeCompat
, we could perhaps move this trait entirely to alloy
(self.header, self.body) | ||
} | ||
} | ||
pub type Block<T = TransactionSigned> = alloy_consensus::Block<T>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kept these as aliases so we don't break anything
This replaces the reth block+blockbody types with alloy's
This allows further simplifications because now we have access to these in reth-primitives-traits.
a few things could use some work:
SealedBlock
as the target