Bitcoin Core 31.99.0
P2P Digital Currency
Functions | Variables
mempool_estimator.cpp File Reference
#include <policy/fees/mempool_estimator.h>
#include <logging.h>
#include <node/miner.h>
#include <policy/feerate.h>
#include <policy/policy.h>
#include <primitives/block.h>
#include <serialize.h>
#include <streams.h>
#include <sync.h>
#include <tinyformat.h>
#include <txmempool.h>
#include <util/check.h>
#include <util/feefrac.h>
#include <util/fees.h>
#include <util/fs.h>
#include <util/syserror.h>
#include <validation.h>
#include <algorithm>
#include <iterator>
#include <numeric>
#include <optional>
#include <string>
#include <string_view>
#include <system_error>
#include <utility>
Include dependency graph for mempool_estimator.cpp:

Go to the source code of this file.

Functions

static util::Unexpected< FeeRateEstimationErrorEstimationError (std::string error)
 Build the error result for a failed mempool fee rate estimation. More...
 
static std::optional< std::string_view > MempoolHealthError (MemPoolFeeRateEstimator::MempoolHealth health)
 

Variables

constexpr int CURRENT_MEMPOOL_ESTIMATOR_VERSION {1}
 
static constexpr uint64_t MIN_REPRESENTATIVE_WINDOW_WEIGHT {DEFAULT_BLOCK_MAX_WEIGHT}
 

Function Documentation

◆ EstimationError()

static util::Unexpected< FeeRateEstimationError > EstimationError ( std::string  error)
static

Build the error result for a failed mempool fee rate estimation.

Definition at line 143 of file mempool_estimator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MempoolHealthError()

static std::optional< std::string_view > MempoolHealthError ( MemPoolFeeRateEstimator::MempoolHealth  health)
static

Definition at line 148 of file mempool_estimator.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ CURRENT_MEMPOOL_ESTIMATOR_VERSION

constexpr int CURRENT_MEMPOOL_ESTIMATOR_VERSION {1}
constexpr

Definition at line 33 of file mempool_estimator.cpp.

◆ MIN_REPRESENTATIVE_WINDOW_WEIGHT

constexpr uint64_t MIN_REPRESENTATIVE_WINDOW_WEIGHT {DEFAULT_BLOCK_MAX_WEIGHT}
staticconstexpr

Definition at line 321 of file mempool_estimator.cpp.