From ef589f8d40d926bbc78a556a149c367cf634c376 Mon Sep 17 00:00:00 2001 From: Alex Morcos Date: Wed, 12 Apr 2017 12:05:10 -0400 Subject: [PATCH] minor cleanup: remove unnecessary variable --- src/policy/fees.cpp | 3 +-- src/policy/fees.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index 44adb26d4c..97e9536867 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -487,9 +487,8 @@ CBlockPolicyEstimator::CBlockPolicyEstimator() : nBestSeenHeight(0), firstRecordedHeight(0), historicalFirst(0), historicalBest(0), trackedTxs(0), untrackedTxs(0) { static_assert(MIN_BUCKET_FEERATE > 0, "Min feerate must be nonzero"); - minTrackedFee = CFeeRate(MIN_BUCKET_FEERATE); size_t bucketIndex = 0; - for (double bucketBoundary = minTrackedFee.GetFeePerK(); bucketBoundary <= MAX_BUCKET_FEERATE; bucketBoundary *= FEE_SPACING, bucketIndex++) { + for (double bucketBoundary = MIN_BUCKET_FEERATE; bucketBoundary <= MAX_BUCKET_FEERATE; bucketBoundary *= FEE_SPACING, bucketIndex++) { buckets.push_back(bucketBoundary); bucketMap[bucketBoundary] = bucketIndex; } diff --git a/src/policy/fees.h b/src/policy/fees.h index 45356d62f6..aa179cfddd 100644 --- a/src/policy/fees.h +++ b/src/policy/fees.h @@ -177,7 +177,6 @@ public: void FlushUnconfirmed(CTxMemPool& pool); private: - CFeeRate minTrackedFee; //!< Passed to constructor to avoid dependency on main unsigned int nBestSeenHeight; unsigned int firstRecordedHeight; unsigned int historicalFirst;