reth_static_file_types

Function find_fixed_range

Source
pub const fn find_fixed_range(
    block: BlockNumber,
    blocks_per_static_file: u64,
) -> SegmentRangeInclusive
Expand description

Each static file has a fixed number of blocks. This gives out the range where the requested block is positioned. Used for segment filename.