Skip to content

Commit ef589f8

Browse files
committed
minor cleanup: remove unnecessary variable
1 parent 3ee76d6 commit ef589f8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/policy/fees.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,8 @@ CBlockPolicyEstimator::CBlockPolicyEstimator()
487487
: nBestSeenHeight(0), firstRecordedHeight(0), historicalFirst(0), historicalBest(0), trackedTxs(0), untrackedTxs(0)
488488
{
489489
static_assert(MIN_BUCKET_FEERATE > 0, "Min feerate must be nonzero");
490-
minTrackedFee = CFeeRate(MIN_BUCKET_FEERATE);
491490
size_t bucketIndex = 0;
492-
for (double bucketBoundary = minTrackedFee.GetFeePerK(); bucketBoundary <= MAX_BUCKET_FEERATE; bucketBoundary *= FEE_SPACING, bucketIndex++) {
491+
for (double bucketBoundary = MIN_BUCKET_FEERATE; bucketBoundary <= MAX_BUCKET_FEERATE; bucketBoundary *= FEE_SPACING, bucketIndex++) {
493492
buckets.push_back(bucketBoundary);
494493
bucketMap[bucketBoundary] = bucketIndex;
495494
}

src/policy/fees.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ class CBlockPolicyEstimator
177177
void FlushUnconfirmed(CTxMemPool& pool);
178178

179179
private:
180-
CFeeRate minTrackedFee; //!< Passed to constructor to avoid dependency on main
181180
unsigned int nBestSeenHeight;
182181
unsigned int firstRecordedHeight;
183182
unsigned int historicalFirst;

0 commit comments

Comments
 (0)