diff --git a/crates/primitives/src/traits/block/body.rs b/crates/primitives/src/traits/block/body.rs index 91e836e8ecdd..ff8f71b76162 100644 --- a/crates/primitives/src/traits/block/body.rs +++ b/crates/primitives/src/traits/block/body.rs @@ -31,6 +31,7 @@ pub trait BlockBody: fn transactions(&self) -> &[Self::SignedTransaction]; /// Returns [`Withdrawals`] in the block, if any. + // todo: branch out into extension trait fn withdrawals(&self) -> Option<&Withdrawals>; /// Returns reference to uncle block headers. @@ -94,9 +95,6 @@ pub trait BlockBody: } /// Calculates a heuristic for the in-memory size of the [`BlockBody`]. - // todo: default impl when alloy prs merged - // - // fn size(&self) -> usize; } diff --git a/crates/primitives/src/traits/block/mod.rs b/crates/primitives/src/traits/block/mod.rs index 3ae42cee7d53..451a54c3457c 100644 --- a/crates/primitives/src/traits/block/mod.rs +++ b/crates/primitives/src/traits/block/mod.rs @@ -24,7 +24,7 @@ pub trait Block: { /// Header part of the block. type Header: BlockHeader + Sealable; - + /// The block's body contains the transactions in the block. type Body: BlockBody; @@ -101,8 +101,6 @@ pub trait Block: } /// Calculates a heuristic for the in-memory size of the [`Block`]. - // todo: default impl when alloy prs merged - // fn size(&self) -> usize; }