Raven Core  3.0.0
P2P Digital Currency
Classes | Enumerations | Functions
fees.h File Reference
#include "amount.h"
#include "feerate.h"
#include "uint256.h"
#include "random.h"
#include "sync.h"
#include <map>
#include <string>
#include <vector>
#include <array>
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)
 
int getConfTargetForIndex (int index)
 
int getIndexForConfTarget (int target)
 

Enumeration Type Documentation

◆ FeeEstimateHorizon

Enumerator
SHORT_HALFLIFE 
MED_HALFLIFE 
LONG_HALFLIFE 

Definition at line 73 of file fees.h.

◆ FeeEstimateMode

enum FeeEstimateMode
strong
Enumerator
UNSET 
ECONOMICAL 

Use default settings based on other criteria.

CONSERVATIVE 

Force estimateSmartFee to use non-conservative estimates.

Definition at line 98 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 82 of file fees.h.

Function Documentation

◆ FeeModeFromString()

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:

◆ getConfTargetForIndex()

int getConfTargetForIndex ( int  index)

Definition at line 1056 of file fees.cpp.

Here is the caller graph for this function:

◆ getIndexForConfTarget()

int getIndexForConfTarget ( int  target)

Definition at line 1066 of file fees.cpp.

◆ StringForFeeEstimateHorizon()

std::string StringForFeeEstimateHorizon ( FeeEstimateHorizon  horizon)

Definition at line 20 of file fees.cpp.

◆ StringForFeeReason()

std::string StringForFeeReason ( FeeReason  reason)

Definition at line 33 of file fees.cpp.