reth::consensus_common::validation

Function validate_body_against_header

Source
pub fn validate_body_against_header<B, H>(
    body: &B,
    header: &H,
) -> Result<(), ConsensusError>
where B: BlockBody, H: BlockHeader,
Expand description

Ensures the block response data matches the header.

This ensures the body response items match the header’s hashes:

  • ommer hash
  • transaction root
  • withdrawals root