diff options
author | Alex Morcos <morcos@chaincode.com> | 2016-12-08 09:15:01 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2016-12-08 15:40:14 -0500 |
commit | f8d43b8081eef080ebb4514d1493c0c8d81d27ab (patch) | |
tree | e7d5795baa0c98e1aa40632fcf2e1d107b7eee81 /src/txmempool.cpp | |
parent | eab8e1b1725f7458e3db6f0ea0bc04ec603d8e9b (diff) |
Avoid rollingMinimumFeeRate never being able to decay below half
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r-- | src/txmempool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index c035a84db5..981f31f486 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -1082,7 +1082,7 @@ CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const { rollingMinimumFeeRate = rollingMinimumFeeRate / pow(2.0, (time - lastRollingFeeUpdate) / halflife); lastRollingFeeUpdate = time; - if (rollingMinimumFeeRate < minReasonableRelayFee.GetFeePerK() / 2) { + if (rollingMinimumFeeRate < (double)minReasonableRelayFee.GetFeePerK() / 2) { rollingMinimumFeeRate = 0; return CFeeRate(0); } |