CBlockPolicyEstimator now uses hard coded minimum bucket feerate

This commit is contained in:
Alex Morcos
2017-01-13 16:25:15 -05:00
parent ac9d3d25f7
commit 2a7b56cc0e
3 changed files with 10 additions and 5 deletions

View File

@@ -298,11 +298,11 @@ bool CBlockPolicyEstimator::removeTx(uint256 hash)
}
}
CBlockPolicyEstimator::CBlockPolicyEstimator(const CFeeRate& _minRelayFee)
CBlockPolicyEstimator::CBlockPolicyEstimator()
: nBestSeenHeight(0), trackedTxs(0), untrackedTxs(0)
{
static_assert(MIN_BUCKET_FEERATE > 0, "Min feerate must be nonzero");
minTrackedFee = _minRelayFee < CFeeRate(MIN_BUCKET_FEERATE) ? CFeeRate(MIN_BUCKET_FEERATE) : _minRelayFee;
minTrackedFee = CFeeRate(MIN_BUCKET_FEERATE);
std::vector<double> vfeelist;
for (double bucketBoundary = minTrackedFee.GetFeePerK(); bucketBoundary <= MAX_BUCKET_FEERATE; bucketBoundary *= FEE_SPACING) {
vfeelist.push_back(bucketBoundary);