mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Avoid rollingMinimumFeeRate never being able to decay below half
This commit is contained in:
parent
eab8e1b172
commit
f8d43b8081
@ -1082,7 +1082,7 @@ CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const {
|
|||||||
rollingMinimumFeeRate = rollingMinimumFeeRate / pow(2.0, (time - lastRollingFeeUpdate) / halflife);
|
rollingMinimumFeeRate = rollingMinimumFeeRate / pow(2.0, (time - lastRollingFeeUpdate) / halflife);
|
||||||
lastRollingFeeUpdate = time;
|
lastRollingFeeUpdate = time;
|
||||||
|
|
||||||
if (rollingMinimumFeeRate < minReasonableRelayFee.GetFeePerK() / 2) {
|
if (rollingMinimumFeeRate < (double)minReasonableRelayFee.GetFeePerK() / 2) {
|
||||||
rollingMinimumFeeRate = 0;
|
rollingMinimumFeeRate = 0;
|
||||||
return CFeeRate(0);
|
return CFeeRate(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user