Fabcoin Core  0.16.2
P2P Digital Currency
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 <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
 We want to be able to estimate feerates that are needed on tx's to be included in a certain number of blocks. More...
 
struct  CBlockPolicyEstimator::TxStatsInfo
 
class  FeeFilterRounder
 

Enumerations

enum  FeeEstimateHorizon { SHORT_HALFLIFE = 0, MED_HALFLIFE = 1, 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

Enumerator
SHORT_HALFLIFE 
MED_HALFLIFE 
LONG_HALFLIFE 

Definition at line 71 of file fees.h.

enum FeeEstimateMode
strong
Enumerator
UNSET 
ECONOMICAL 

Use default settings based on other criteria.

CONSERVATIVE 

Force estimateSmartFee to use non-conservative estimates.

Definition at line 96 of file fees.h.

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

Definition at line 80 of file fees.h.

Function Documentation

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

Definition at line 53 of file fees.cpp.

Here is the caller graph for this function:

std::string StringForFeeEstimateHorizon ( FeeEstimateHorizon  horizon)

Definition at line 20 of file fees.cpp.

Here is the caller graph for this function:

std::string StringForFeeReason ( FeeReason  reason)

Definition at line 33 of file fees.cpp.