Function verify_header_to_header

Source
pub fn verify_header_to_header(
    h1: &BlockHeader,
    h2: &BlockHeader,
) -> Result<(), Error>
Expand description

Verifies whether h2 can be the direct child of h1.

Note that you still need to verify

  1. block body (other commits)
  2. finalization proof
  3. protocol version of the node binary.