Changeset View
Changeset View
Standalone View
Standalone View
src/policy/fees.h
Show First 20 Lines • Show All 195 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 Amount MIN_FEERATE(10 * SATOSHI); | static constexpr Amount MIN_FEERATE(10 * SATOSHI); | ||||
static const Amount MAX_FEERATE(int64_t(1e7) * SATOSHI); | static const Amount MAX_FEERATE(int64_t(1e7) * SATOSHI); | ||||
static const Amount INF_FEERATE(MAX_MONEY); | static const Amount INF_FEERATE(MAX_MONEY); | ||||
static const Amount INF_PRIORITY(int64_t(1e9) * MAX_MONEY); | |||||
// 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 76 Lines • Show Last 20 Lines |