validate_against_parent_hash_number

Function validate_against_parent_hash_number 

pub fn validate_against_parent_hash_number<H>(
    header: &H,
    parent: &SealedHeader<H>,
) -> Result<(), ConsensusError>
where H: BlockHeader,
Available on crate feature consensus only.
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.