Function reth_evm::system_calls::apply_beacon_root_contract_call

source ยท
pub fn apply_beacon_root_contract_call<EvmConfig, EXT, DB>(
    evm_config: &EvmConfig,
    chain_spec: &ChainSpec,
    block_timestamp: u64,
    block_number: u64,
    parent_beacon_block_root: Option<B256>,
    evm: &mut Evm<'_, EXT, DB>,
) -> Result<(), BlockExecutionError>
where DB: Database + DatabaseCommit, DB::Error: Display, EvmConfig: ConfigureEvm<Header = Header>,
Expand description

Applies the pre-block call to the EIP-4788 beacon block root contract, using the given block, [ChainSpec], EVM.

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