Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Enumerations | Functions | Variables
fees.h File Reference
#include <consensus/amount.h>
#include <policy/feerate.h>
#include <random.h>
#include <sync.h>
#include <threadsafety.h>
#include <uint256.h>
#include <util/fs.h>
#include <validationinterface.h>
#include <array>
#include <chrono>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <vector>
Include dependency graph for fees.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EstimatorBucket
 
struct  EstimationResult
 
struct  FeeCalculation
 
class  CBlockPolicyEstimator
 The BlockPolicyEstimator is used for estimating the feerate needed for a transaction to be included in a block within a certain number of blocks. More...
 
struct  CBlockPolicyEstimator::TxStatsInfo
 
class  FeeFilterRounder
 

Enumerations

enum class  FeeEstimateHorizon { SHORT_HALFLIFE , MED_HALFLIFE , LONG_HALFLIFE }
 
enum class  FeeReason {
  NONE , HALF_ESTIMATE , FULL_ESTIMATE , DOUBLE_ESTIMATE ,
  CONSERVATIVE , MEMPOOL_MIN , PAYTXFEE , FALLBACK ,
  REQUIRED
}
 

Functions

std::string StringForFeeEstimateHorizon (FeeEstimateHorizon horizon)
 

Variables

static constexpr std::chrono::hours FEE_FLUSH_INTERVAL {1}
 
static constexpr std::chrono::hours MAX_FILE_AGE {60}
 fee_estimates.dat that are more than 60 hours (2.5 days) old will not be read, as fee estimates are based on historical data and may be inaccurate if network activity has changed. More...
 
static constexpr bool DEFAULT_ACCEPT_STALE_FEE_ESTIMATES {false}
 
static constexpr auto ALL_FEE_ESTIMATE_HORIZONS
 

Enumeration Type Documentation

◆ FeeEstimateHorizon

enum FeeEstimateHorizon
strong
Enumerator
SHORT_HALFLIFE 
MED_HALFLIFE 
LONG_HALFLIFE 

Definition at line 45 of file fees.h.

◆ FeeReason

enum FeeReason
strong
Enumerator
NONE 
HALF_ESTIMATE 
FULL_ESTIMATE 
DOUBLE_ESTIMATE 
CONSERVATIVE 
MEMPOOL_MIN 
PAYTXFEE 
FALLBACK 
REQUIRED 

Definition at line 60 of file fees.h.

Function Documentation

◆ StringForFeeEstimateHorizon()

std::string StringForFeeEstimateHorizon ( FeeEstimateHorizon  horizon)

Definition at line 37 of file fees.cpp.

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

Variable Documentation

◆ ALL_FEE_ESTIMATE_HORIZONS

constexpr auto ALL_FEE_ESTIMATE_HORIZONS
staticconstexpr

◆ DEFAULT_ACCEPT_STALE_FEE_ESTIMATES

constexpr bool DEFAULT_ACCEPT_STALE_FEE_ESTIMATES {false}
staticconstexpr

Definition at line 36 of file fees.h.

◆ FEE_FLUSH_INTERVAL

constexpr std::chrono::hours FEE_FLUSH_INTERVAL {1}
staticconstexpr

Definition at line 27 of file fees.h.

◆ MAX_FILE_AGE

constexpr std::chrono::hours MAX_FILE_AGE {60}
staticconstexpr

fee_estimates.dat that are more than 60 hours (2.5 days) old will not be read, as fee estimates are based on historical data and may be inaccurate if network activity has changed.

Definition at line 33 of file fees.h.