pub struct Header {
pub number: u64,
pub hash: B256,
pub parent_hash: B256,
pub state_root: B256,
pub timestamp: u64,
pub block_access_list_hash: Option<B256>,
}Expand description
The parts of a block header the archive needs. Kept minimal on purpose: the full Glamsterdam header layout is not frozen, and only these fields participate in verification.
Fields§
§number: u64Block height.
hash: B256Block hash as reported by the node.
parent_hash: B256Hash of the parent block; used to detect reorgs between passes.
state_root: B256Post-state root; Merkle proofs are verified against it.
timestamp: u64Block timestamp (seconds).
block_access_list_hash: Option<B256>None on pre-Glamsterdam blocks or clients that do not expose it.
Trait Implementations§
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more