Skip to main content

last_missing_block

Function last_missing_block 

Source
pub fn last_missing_block(
    tip: u64,
    ranges: impl Iterator<Item = SegmentRangeInclusive>,
) -> Option<u64>
Expand description

Returns the last missing block at or below tip, or None if coverage reaches genesis. Ranges must be ordered by decreasing end block. Overlapping ranges are allowed.