Function reth_evm::system_calls::pre_block_blockhashes_contract_call
source ยท pub fn pre_block_blockhashes_contract_call<EvmConfig, DB>(
db: &mut DB,
evm_config: &EvmConfig,
chain_spec: &ChainSpec,
initialized_cfg: &CfgEnvWithHandlerCfg,
initialized_block_env: &BlockEnv,
parent_block_hash: B256,
) -> Result<(), BlockExecutionError>where
DB: Database + DatabaseCommit,
DB::Error: Display,
EvmConfig: ConfigureEvm<Header = Header>,
Expand description
Apply the EIP-2935 pre block contract call.
This constructs a new [Evm
] with the given database and environment ([CfgEnvWithHandlerCfg
]
and [BlockEnv
]) to execute the pre block contract call.
This uses apply_blockhashes_contract_call
to ultimately apply the
blockhash contract state change.