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>
Available on crate feature provider only.
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.