reth::consensus_common::validation

Function validate_block_pre_execution

Source
pub fn validate_block_pre_execution<H, B, ChainSpec>(
    block: &SealedBlock<H, B>,
    chain_spec: &ChainSpec,
) -> Result<(), ConsensusError>
where H: BlockHeader, B: BlockBody, 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