diff options
| author | Alex Morcos <[email protected]> | 2017-04-12 12:05:10 -0400 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2017-05-10 11:47:45 -0400 |
| commit | ef589f8d40d926bbc78a556a149c367cf634c376 (patch) | |
| tree | 94d04ab78c258fb1ca98f69a20715a7baca86d25 /src/policy/fees.cpp | |
| parent | Introduce a scale factor (diff) | |
| download | discoin-ef589f8d40d926bbc78a556a149c367cf634c376.tar.xz discoin-ef589f8d40d926bbc78a556a149c367cf634c376.zip | |
minor cleanup: remove unnecessary variable
Diffstat (limited to 'src/policy/fees.cpp')
| -rw-r--r-- | src/policy/fees.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index 44adb26d4..97e953686 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; } |