MemPoolFeeRateEstimatorCache::GetCachedEstimate

Returns cached estimates if not stale and computed on tip_hash, nullopt otherwise.

Synopsis

Declared in <policy/fees/mempool_estimator.h>

std::optional<FeeRateEstimate>
GetCachedEstimate(uint256 const& tip_hash) const;

Return Value

The cached estimate when fresh and computed on tip_hash, otherwise nullopt.

Parameters

NameDescription
tip_hashHash of the chain tip the caller expects the estimate to match.