reth_optimism_consensus

Function validate_block_post_execution

Source
pub fn validate_block_post_execution(
    block: &BlockWithSenders,
    chain_spec: &ChainSpec,
    receipts: &[Receipt],
) -> Result<(), ConsensusError>
Available on crate feature optimism only.
Expand description

Validate a block with regard to execution results:

  • Compares the receipts root in the block header to the block body
  • Compares the gas used in the block header to the actual gas usage after execution