Changeset View
Changeset View
Standalone View
Standalone View
src/policy/fees.h
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | |||||
/** Require an avg of 1 tx in the combined feerate bucket per block to have stat | /** Require an avg of 1 tx in the combined feerate bucket per block to have stat | ||||
* significance */ | * significance */ | ||||
static const double SUFFICIENT_FEETXS = 1; | static const double SUFFICIENT_FEETXS = 1; | ||||
// Minimum and Maximum values for tracking feerates | // Minimum and Maximum values for tracking feerates | ||||
static constexpr double MIN_FEERATE = 10; | static constexpr double MIN_FEERATE = 10; | ||||
static const double MAX_FEERATE = 1e7; | static const double MAX_FEERATE = 1e7; | ||||
static const double INF_FEERATE = MAX_MONEY; | static const double INF_FEERATE = MAX_MONEY.GetSatoshis(); | ||||
static const double INF_PRIORITY = 1e9 * MAX_MONEY; | static const double INF_PRIORITY = 1e9 * MAX_MONEY.GetSatoshis(); | ||||
// We have to lump transactions into buckets based on feerate, but we want to be | // We have to lump transactions into buckets based on feerate, but we want to be | ||||
// able to give accurate estimates over a large range of potential feerates. | // able to give accurate estimates over a large range of potential feerates. | ||||
// Therefore it makes sense to exponentially space the buckets | // Therefore it makes sense to exponentially space the buckets | ||||
/** Spacing of FeeRate buckets */ | /** Spacing of FeeRate buckets */ | ||||
static const double FEE_SPACING = 1.1; | static const double FEE_SPACING = 1.1; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |