BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Classes | Enumerations | Functions
fees.h File Reference
#include <amount.h>
#include <policy/feerate.h>
#include <uint256.h>
#include <random.h>
#include <sync.h>
#include <map>
#include <memory>
#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  FeeEstimateHorizon { FeeEstimateHorizon::SHORT_HALFLIFE = 0, FeeEstimateHorizon::MED_HALFLIFE = 1, FeeEstimateHorizon::LONG_HALFLIFE = 2 }
 
enum  FeeReason {
  FeeReason::NONE, FeeReason::HALF_ESTIMATE, FeeReason::FULL_ESTIMATE, FeeReason::DOUBLE_ESTIMATE,
  FeeReason::CONSERVATIVE, FeeReason::MEMPOOL_MIN, FeeReason::PAYTXFEE, FeeReason::FALLBACK,
  FeeReason::REQUIRED, FeeReason::MAXTXFEE
}
 
enum  FeeEstimateMode { FeeEstimateMode::UNSET, FeeEstimateMode::ECONOMICAL, FeeEstimateMode::CONSERVATIVE }
 

Functions

std::string StringForFeeEstimateHorizon (FeeEstimateHorizon horizon)
 
std::string StringForFeeReason (FeeReason reason)
 
bool FeeModeFromString (const std::string &mode_string, FeeEstimateMode &fee_estimate_mode)
 

Enumeration Type Documentation

◆ FeeEstimateHorizon

enum FeeEstimateHorizon
strong
Enumerator
SHORT_HALFLIFE 
MED_HALFLIFE 
LONG_HALFLIFE 

Definition at line 27 of file fees.h.

◆ FeeEstimateMode

enum FeeEstimateMode
strong
Enumerator
UNSET 

Use default settings based on other criteria.

ECONOMICAL 

Force estimateSmartFee to use non-conservative estimates.

CONSERVATIVE 

Force estimateSmartFee to use conservative estimates.

Definition at line 52 of file fees.h.

◆ FeeReason

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

Definition at line 36 of file fees.h.

Function Documentation

◆ FeeModeFromString()

bool FeeModeFromString ( const std::string &  mode_string,
FeeEstimateMode fee_estimate_mode 
)

Definition at line 50 of file fees.cpp.

◆ StringForFeeEstimateHorizon()

std::string StringForFeeEstimateHorizon ( FeeEstimateHorizon  horizon)

Definition at line 17 of file fees.cpp.

◆ StringForFeeReason()

std::string StringForFeeReason ( FeeReason  reason)

Definition at line 30 of file fees.cpp.