|
|
|
@ -879,8 +879,10 @@ CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const {
@@ -879,8 +879,10 @@ CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const {
|
|
|
|
|
rollingMinimumFeeRate = rollingMinimumFeeRate / pow(2.0, (time - lastRollingFeeUpdate) / halflife); |
|
|
|
|
lastRollingFeeUpdate = time; |
|
|
|
|
|
|
|
|
|
if (rollingMinimumFeeRate < minReasonableRelayFee.GetFeePerK() / 2) |
|
|
|
|
if (rollingMinimumFeeRate < minReasonableRelayFee.GetFeePerK() / 2) { |
|
|
|
|
rollingMinimumFeeRate = 0; |
|
|
|
|
return CFeeRate(0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return std::max(CFeeRate(rollingMinimumFeeRate), minReasonableRelayFee); |
|
|
|
|
} |
|
|
|
|