mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
feat(primitives): add From<Sealed<B>> for SealedBlock<B> (#21078)
This commit is contained in:
@@ -282,6 +282,13 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<B: Block> From<Sealed<B>> for SealedBlock<B> {
|
||||
fn from(sealed: Sealed<B>) -> Self {
|
||||
let (block, hash) = sealed.into_parts();
|
||||
Self::new_unchecked(block, hash)
|
||||
}
|
||||
}
|
||||
|
||||
impl<B> Default for SealedBlock<B>
|
||||
where
|
||||
B: Block + Default,
|
||||
|
||||
Reference in New Issue
Block a user