reth_node_core::primitives::static_file

Function find_fixed_range

pub const fn find_fixed_range(
    block: u64,
    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.