validate_body_against_header_op

Function validate_body_against_header_op 

Source
pub fn validate_body_against_header_op<B, H>(
    chain_spec: impl OpHardforks,
    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: the body’s withdrawals root must only match the header’s before isthmus