[#MemPoolFeeRateEstimatorCache] = MemPoolFeeRateEstimatorCache :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class MemPoolFeeRateEstimatorCache; ---- == Types [cols="1,4"] |=== | Name| Description | xref:MemPoolFeeRateEstimatorCache/FeeRateEstimate.adoc[`FeeRateEstimate`] | A pair of conservative and economical fee rate estimates. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:MemPoolFeeRateEstimatorCache/2constructor-0b.adoc[`MemPoolFeeRateEstimatorCache`] [.small]#[constructor]# | Constructors | xref:MemPoolFeeRateEstimatorCache/operator_assign.adoc[`operator=`] [.small]#[deleted]# | Deleted copy assignment; the cache is non‐copyable. | xref:MemPoolFeeRateEstimatorCache/Clear.adoc[`Clear`] | Clear cached fee rate estimates. | xref:MemPoolFeeRateEstimatorCache/GetCachedEstimate.adoc[`GetCachedEstimate`] | Returns cached estimates if not stale and computed on tip_hash, nullopt otherwise. | xref:MemPoolFeeRateEstimatorCache/IsStale.adoc[`IsStale`] | Returns true if the cache is empty or older than CACHE_LIFE. | xref:MemPoolFeeRateEstimatorCache/Update.adoc[`Update`] | Update the cache with new estimates computed on tip_hash. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#