mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add header AT to provider (#13030)
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user