Migrate from SealedBlock
to alloy_primitives::Sealed<T>
#11449
Labels
A-dependencies
Pull requests or issues that are about dependencies
A-sdk
Related to reth's use as a library
C-debt
Refactor of code section that is hard to understand or maintain
S-blocked
This cannot more forward until something else changes
Describe the feature
Similar to #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 withreth/crates/primitives/src/traits/block/mod.rs
Lines 13 to 137 in 7fbe19a
This PR will follow #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 #11442Additional context
No response
The text was updated successfully, but these errors were encountered: