Dash Core  0.12.2.1
P2P Digital Currency
fees.h File Reference
#include "amount.h"
#include "uint256.h"
#include <map>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  TxConfirmStats
 
class  CBlockPolicyEstimator
 
struct  CBlockPolicyEstimator::TxStatsInfo
 

Variables

static const unsigned int MAX_BLOCK_CONFIRMS = 25
 
static const double DEFAULT_DECAY = .998
 
static const double MIN_SUCCESS_PCT = .95
 
static const double UNLIKELY_PCT = .5
 
static const double SUFFICIENT_FEETXS = 1
 
static const double SUFFICIENT_PRITXS = .2
 
static const double MIN_FEERATE = 10
 
static const double MAX_FEERATE = 1e7
 
static const double INF_FEERATE = MAX_MONEY
 
static const double MIN_PRIORITY = 10
 
static const double MAX_PRIORITY = 1e16
 
static const double INF_PRIORITY = 1e9 * MAX_MONEY
 
static const double FEE_SPACING = 1.1
 
static const double PRI_SPACING = 2
 

Variable Documentation

◆ DEFAULT_DECAY

const double DEFAULT_DECAY = .998
static

Decay of .998 is a half-life of 346 blocks or about 14.4 hours

Definition at line 184 of file fees.h.

Referenced by CBlockPolicyEstimator::CBlockPolicyEstimator().

◆ FEE_SPACING

const double FEE_SPACING = 1.1
static

Spacing of FeeRate buckets

Definition at line 208 of file fees.h.

Referenced by CBlockPolicyEstimator::CBlockPolicyEstimator().

◆ INF_FEERATE

const double INF_FEERATE = MAX_MONEY
static

◆ INF_PRIORITY

const double INF_PRIORITY = 1e9 * MAX_MONEY
static

◆ MAX_BLOCK_CONFIRMS

const unsigned int MAX_BLOCK_CONFIRMS = 25
static

Track confirm delays up to 25 blocks, can't estimate beyond that

Definition at line 181 of file fees.h.

Referenced by CBlockPolicyEstimator::CBlockPolicyEstimator().

◆ MAX_FEERATE

const double MAX_FEERATE = 1e7
static

Definition at line 198 of file fees.h.

Referenced by CBlockPolicyEstimator::CBlockPolicyEstimator().

◆ MAX_PRIORITY

const double MAX_PRIORITY = 1e16
static

Definition at line 201 of file fees.h.

Referenced by CBlockPolicyEstimator::CBlockPolicyEstimator().

◆ MIN_FEERATE

const double MIN_FEERATE = 10
static

Definition at line 197 of file fees.h.

Referenced by CBlockPolicyEstimator::CBlockPolicyEstimator().

◆ MIN_PRIORITY

const double MIN_PRIORITY = 10
static

Definition at line 200 of file fees.h.

Referenced by CBlockPolicyEstimator::CBlockPolicyEstimator().

◆ MIN_SUCCESS_PCT

const double MIN_SUCCESS_PCT = .95
static

Require greater than 95% of X fee transactions to be confirmed within Y blocks for X to be big enough

Definition at line 187 of file fees.h.

Referenced by CBlockPolicyEstimator::estimateFee(), CBlockPolicyEstimator::estimatePriority(), CBlockPolicyEstimator::estimateSmartFee(), CBlockPolicyEstimator::estimateSmartPriority(), and CBlockPolicyEstimator::processBlock().

◆ PRI_SPACING

const double PRI_SPACING = 2
static

Spacing of Priority buckets

Definition at line 211 of file fees.h.

Referenced by CBlockPolicyEstimator::CBlockPolicyEstimator().

◆ SUFFICIENT_FEETXS

const double SUFFICIENT_FEETXS = 1
static

Require an avg of 1 tx in the combined fee bucket per block to have stat significance

Definition at line 191 of file fees.h.

Referenced by CBlockPolicyEstimator::estimateFee(), CBlockPolicyEstimator::estimateSmartFee(), and CBlockPolicyEstimator::processBlock().

◆ SUFFICIENT_PRITXS

const double SUFFICIENT_PRITXS = .2
static

Require only an avg of 1 tx every 5 blocks in the combined pri bucket (way less pri txs)

Definition at line 194 of file fees.h.

Referenced by CBlockPolicyEstimator::estimatePriority(), CBlockPolicyEstimator::estimateSmartPriority(), and CBlockPolicyEstimator::processBlock().

◆ UNLIKELY_PCT

const double UNLIKELY_PCT = .5
static

Definition at line 188 of file fees.h.

Referenced by CBlockPolicyEstimator::processBlock().