reth::consensus_common::validation

Function validate_block_pre_execution

pub fn validate_block_pre_execution<ChainSpec>(
    block: &SealedBlock,
    chain_spec: &ChainSpec,
) -> Result<(), ConsensusError>
where ChainSpec: EthereumHardforks,
Expand description

Validate a block without regard for state:

  • Compares the ommer hash in the block header to the block body
  • Compares the transactions root in the block header to the block body
  • Pre-execution transaction validation
  • (Optionally) Compares the receipts root in the block header to the block body