Function aggregate_range_bounds

Source
async fn aggregate_range_bounds<Types>(
    tx: &mut Transaction<impl TransactionMode>,
    range: impl RangeBounds<usize>,
) -> QueryResult<Option<(usize, usize)>>
where Types: NodeType, Header<Types>: QueryableHeader<Types>,
Expand description

Get inclusive start and end bounds for a range to pull aggregate statistics.

Returns None if there are no blocks in the given range, in which case the result should be the default value of the aggregate statistic.