derive_arb_header_info

Function derive_arb_header_info 

Source
pub fn derive_arb_header_info<E, F: Fn(Address, B256) -> Result<Option<U256>, E>>(
    read_slot: &F,
    coinbase: Address,
) -> Result<Option<ArbHeaderInfo>, E>
Expand description

Derive ArbHeaderInfo from storage reads.

Returns Ok(None) when the ArbOS version slot is absent (pre-genesis state that cannot be derived) and Err when a backing-store read fails.