Similar to https://github.com/paradigmxyz/reth/issues/11123, remove type reth_primitives::SealedBlock in favour of using alloy_primitives::Sealed<T>. The new Block trait will automatically be implemented for SealedBlock, since it derefs to the inner type T. Hence any redundant methods from Block trait and impl of reth_primitives::SealedBlock should be removed. Same goes for methods in impl of Sealed<T> and alloy_primitives:Sealable. Probably there are no unique methods left on reth_primitives::SealedBlock, if there is we may need a wrapper type in reth, however we should be able to replace the reth type with
pub type SealedBlock = alloy_primitives::Sealed<reth_primitives::Block>;
Describe the feature
Similar to https://github.com/paradigmxyz/reth/issues/11123, remove type
reth_primitives::SealedBlock
in favour of usingalloy_primitives::Sealed<T>
. The newBlock
trait will automatically be implemented forSealedBlock
, since it derefs to the inner typeT
. Hence any redundant methods fromBlock
trait and impl ofreth_primitives::SealedBlock
should be removed. Same goes for methods in impl ofSealed<T>
andalloy_primitives:Sealable
. Probably there are no unique methods left onreth_primitives::SealedBlock
, if there is we may need a wrapper type in reth, however we should be able to replace the reth type withhttps://github.com/paradigmxyz/reth/blob/7fbe19a9bf91ed3c6eec212fb47b05f520606571/crates/primitives/src/traits/block/mod.rs#L13-L137
This PR will follow https://github.com/paradigmxyz/reth/pull/11430, which only temporarily fixes this (unblocking import of
Block
trait intoreth_node_types
).For problems that will be encountered with
Comapct
onSealed<T>
ref https://github.com/paradigmxyz/reth/pull/11442Additional context
No response