Function jormungandr::blockchain::chain::pre_verify_link
source · pub fn pre_verify_link(
header: &Header,
parent: &Header
) -> Result<(), HeaderChainVerifyError>
Expand description
Performs lightweight sanity checks on information fields of a block header
against those in the header of the block’s parent.
The parent
header must have been retrieved based on, or otherwise
matched to, the parent block hash of header
.
Panics
If the parent hash in the header does not match that of the parent, this function may panic.