Function reth::revm::state_change::apply_blockhashes_update

pub fn apply_blockhashes_update<DB>(
    db: &mut DB,
    chain_spec: &ChainSpec,
    block_timestamp: u64,
    block_number: u64,
    parent_block_hash: FixedBytes<32>,
) -> Result<(), BlockExecutionError>
Expand description

Applies the pre-block state change outlined in EIP-2935 to store historical blockhashes in a system contract.

If Prague is not activated, or the block is the genesis block, then this is a no-op, and no state changes are made.

If the provided block is after Prague has been activated, the parent hash will be inserted.