Module fee_history
Available on crate feature
rpc
only.Expand description
Consist of types adjacent to the fee history cache and its configs
Structs§
- FeeHistory
Cache - Contains cached fee history entries for blocks.
- FeeHistory
Cache Config - Settings for the
FeeHistoryCache
. - FeeHistory
Entry - 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.