Module fee_history

Expand description

Consist of types adjacent to the fee history cache and its configs

Structs§

FeeHistoryCache
Contains cached fee history entries for blocks.
FeeHistoryCacheConfig
Settings for the FeeHistoryCache.
FeeHistoryEntry
A cached entry for a block’s fee history.

Functions§

calculate_reward_percentiles_for_block
Calculates reward percentiles for transactions in a block header. Given a list of percentiles and a sealed block header, this function computes the corresponding rewards for the transactions at each percentile.
fee_history_cache_new_blocks_task
Awaits for new chain events and directly inserts them into the cache so they’re available immediately before they need to be fetched from disk.