Skip to main content

check_best_tip_block_commitments

Function check_best_tip_block_commitments 

Source
pub fn check_best_tip_block_commitments(
    non_finalized_state: &NonFinalizedState,
    db: &ZebraDb,
    network: &Network,
    block: Arc<Block>,
) -> Result<(), BoxError>
Expand description

Checks that block is an NU5 or later direct child of the best tip, and that its header commits to the best tip’s chain history and to the block’s own authorizing data.

This does not check the block’s proof of work, Merkle root, or transactions.