FeeRateEstimatorManager

Tracks fee-rate estimates derived from observed transactions.

Synopsis

Declared in <policy/fees/estimator_man.h>

class FeeRateEstimatorManager
    : public CValidationInterface

Base Classes

NameDescription
CValidationInterfaceImplement this to subscribe to events generated in validation and mempool

Member Functions

NameDescription
FeeRateEstimatorManager [constructor]Construct the manager and its underlying fee rate estimators.
~FeeRateEstimatorManager [destructor] [virtual]Destroy the manager and release its estimators.
BlockPolicyEstimateRawFee Delegate to the block policy estimator's estimateRawFee (used by the estimaterawfee RPC).
BlockPolicyHighestTargetTracked Returns the maximum supported confirmation target of block policy estimator.
GetFeeRateEstimate GetFeeRateEstimate overloads
IntervalFlush Flush recorded data to disk.
MaximumTarget [virtual]Returns the maximum supported confirmation target from all fee rate estimators.
MempoolPolicyEstimatorBlocksStats Returns per-block weight statistics for the last MEMPOOL_HEALTH_WINDOW_BLOCKS mined blocks.
ShutdownFlush Flush recorded data to disk as part of shutdown sequence.

Protected Member Functions

NameDescription
ActiveTipChange [virtual]Notifies listeners any time the block chain tip changes, synchronously.
BlockChecked [virtual]Notifies listeners of a block validation result. If the provided BlockValidationState IsValid, the provided block is guaranteed to be the current best block at the time the callback was generated (not necessarily now).
BlockConnected [virtual]Notifies listeners of a block being connected.
BlockDisconnected [virtual]Notifies listeners of a block being disconnected Provides the block that was disconnected.
ChainStateFlushed [virtual]Notifies listeners of the new active block chain on-disk.
MempoolTransactionsRemovedForBlock [virtual]Record mempool transactions that were removed because a block was connected.
NewPoWValidBlock [virtual]Notifies listeners that a block which builds directly on our current tip has been received and connected to the headers tree, though not validated yet.
TransactionAddedToMempool [virtual]Record a transaction as it enters the mempool.
TransactionRemovedFromMempool [virtual]Record a transaction as it leaves the mempool.
UpdatedBlockTip [virtual]Notifies listeners when the block chain tip advances.

Non-Member Functions

NameDescription
EnsureAnyFeeEstimatorManGet the fee estimator from an opaque RPC context, asserting it is present.
EnsureFeeEstimatorManGet the fee estimator from a node context, asserting it is present.