Skip to content

Commit ac9d3d2

Browse files
committed
Change fee estimation bucket limit variable names
1 parent 6696b46 commit ac9d3d2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/policy/fees.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@ bool CBlockPolicyEstimator::removeTx(uint256 hash)
301301
CBlockPolicyEstimator::CBlockPolicyEstimator(const CFeeRate& _minRelayFee)
302302
: nBestSeenHeight(0), trackedTxs(0), untrackedTxs(0)
303303
{
304-
static_assert(MIN_FEERATE > 0, "Min feerate must be nonzero");
305-
minTrackedFee = _minRelayFee < CFeeRate(MIN_FEERATE) ? CFeeRate(MIN_FEERATE) : _minRelayFee;
304+
static_assert(MIN_BUCKET_FEERATE > 0, "Min feerate must be nonzero");
305+
minTrackedFee = _minRelayFee < CFeeRate(MIN_BUCKET_FEERATE) ? CFeeRate(MIN_BUCKET_FEERATE) : _minRelayFee;
306306
std::vector<double> vfeelist;
307-
for (double bucketBoundary = minTrackedFee.GetFeePerK(); bucketBoundary <= MAX_FEERATE; bucketBoundary *= FEE_SPACING) {
307+
for (double bucketBoundary = minTrackedFee.GetFeePerK(); bucketBoundary <= MAX_BUCKET_FEERATE; bucketBoundary *= FEE_SPACING) {
308308
vfeelist.push_back(bucketBoundary);
309309
}
310310
vfeelist.push_back(INF_FEERATE);
@@ -492,7 +492,7 @@ FeeFilterRounder::FeeFilterRounder(const CFeeRate& minIncrementalFee)
492492
{
493493
CAmount minFeeLimit = std::max(CAmount(1), minIncrementalFee.GetFeePerK() / 2);
494494
feeset.insert(0);
495-
for (double bucketBoundary = minFeeLimit; bucketBoundary <= MAX_FEERATE; bucketBoundary *= FEE_SPACING) {
495+
for (double bucketBoundary = minFeeLimit; bucketBoundary <= MAX_BUCKET_FEERATE; bucketBoundary *= FEE_SPACING) {
496496
feeset.insert(bucketBoundary);
497497
}
498498
}

src/policy/fees.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ static const double MIN_SUCCESS_PCT = .95;
179179
static const double SUFFICIENT_FEETXS = 1;
180180

181181
// Minimum and Maximum values for tracking feerates
182-
static constexpr double MIN_FEERATE = 10;
183-
static const double MAX_FEERATE = 1e7;
182+
static constexpr double MIN_BUCKET_FEERATE = 10;
183+
static const double MAX_BUCKET_FEERATE = 1e7;
184184
static const double INF_FEERATE = MAX_MONEY;
185185
static const double INF_PRIORITY = 1e9 * MAX_MONEY;
186186

0 commit comments

Comments
 (0)