|
|
|
@ -487,9 +487,8 @@ CBlockPolicyEstimator::CBlockPolicyEstimator()
@@ -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; |
|
|
|
|
} |
|
|
|
|