reth_consensus_common::validation

Function validate_against_parent_hash_number

Source
pub fn validate_against_parent_hash_number(
    header: &Header,
    parent: &SealedHeader,
) -> Result<(), ConsensusError>
Expand description

Validates against the parent hash and number.

This function ensures that the header block number is sequential and that the hash of the parent header matches the parent hash in the header.