Function allow_block_too_late

Source
pub fn allow_block_too_late(state: &State, block: &ArcBlockWithHash) -> bool
Expand description

Decide if the time-reception check should be done for this block or not.

The check is skipped if the block’s global_slot is greater than the current best tip and the difference greater than 2.

Ideally we would differentiate between requested blocks and blocks received from gossip, but this difference doesn’t really exist in the WebRTC transport, hence this heuristic.