MemPoolFeeRateEstimatorCache holds a cache of recent fee rate estimates. A cached fee rate is only provided while it is not older than CACHE_LIFE and the chain tip has not changed.
Synopsis
Declared in <policy/fees/mempool_estimator.h>
class MemPoolFeeRateEstimatorCache;
Types
Name |
Description |
A pair of conservative and economical fee rate estimates. |
Member Functions
Name |
Description |
|
Constructors |
|
Deleted copy assignment; the cache is non‐copyable. |
Clear cached fee rate estimates. |
|
Returns cached estimates if not stale and computed on tip_hash, nullopt otherwise. |
|
Returns true if the cache is empty or older than CACHE_LIFE. |
|
Update the cache with new estimates computed on tip_hash. |
Created with MrDocs