feat: add header AT to provider (#13030)

Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
This commit is contained in:
Matthias Seitz
2024-12-02 14:24:48 +01:00
committed by GitHub
parent 519a10ae99
commit 332cce1f9b
71 changed files with 669 additions and 434 deletions

View File

@ -30,27 +30,15 @@ pub trait BlockHeader:
+ MaybeSerde
+ MaybeArbitrary
+ MaybeSerdeBincodeCompat
+ AsRef<Self>
+ 'static
{
/// Returns whether this header corresponds to an empty block.
fn is_empty(&self) -> bool;
}
impl<T> BlockHeader for T where
T: Send
+ Sync
+ Unpin
+ Clone
+ Default
+ fmt::Debug
+ PartialEq
+ Eq
+ alloy_rlp::Encodable
+ alloy_rlp::Decodable
+ alloy_consensus::BlockHeader
+ Sealable
+ InMemorySize
+ MaybeSerde
+ MaybeArbitrary
+ MaybeSerdeBincodeCompat
+ 'static
{
impl BlockHeader for alloy_consensus::Header {
fn is_empty(&self) -> bool {
self.is_empty()
}
}