Skip to main content

best_tip_commitments_are_valid

Function best_tip_commitments_are_valid 

Source
async fn best_tip_commitments_are_valid<ZS>(
    read_state: ZS,
    block: Arc<Block>,
) -> bool
where ZS: ReadState,
Expand description

Returns true if the state confirms that block passes the rest of the checks that authenticate it for early relay, against the current best tip.

The state checks that block is an NU5 or later child of the best tip, that its difficulty threshold and time are valid in that context, and that its header commits to the best tip’s chain history and to the block’s authorizing data. A failed or timed-out check returns false.