File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,6 @@ BOOST_AUTO_TEST_CASE(MempoolSizeLimitTest)
428
428
// ... but feerate should never drop below 1000
429
429
430
430
SetMockTime (42 + 8 *CTxMemPool::ROLLING_FEE_HALFLIFE + CTxMemPool::ROLLING_FEE_HALFLIFE/2 + CTxMemPool::ROLLING_FEE_HALFLIFE/4 );
431
- pool.GetMinFee (1 );
432
431
BOOST_CHECK_EQUAL (pool.GetMinFee (1 ).GetFeePerK (), 0 );
433
432
// ... unless it has gone all the way to 0 (after getting past 1000/2)
434
433
Original file line number Diff line number Diff line change @@ -879,8 +879,10 @@ CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const {
879
879
rollingMinimumFeeRate = rollingMinimumFeeRate / pow (2.0 , (time - lastRollingFeeUpdate) / halflife);
880
880
lastRollingFeeUpdate = time;
881
881
882
- if (rollingMinimumFeeRate < minReasonableRelayFee.GetFeePerK () / 2 )
882
+ if (rollingMinimumFeeRate < minReasonableRelayFee.GetFeePerK () / 2 ) {
883
883
rollingMinimumFeeRate = 0 ;
884
+ return CFeeRate (0 );
885
+ }
884
886
}
885
887
return std::max (CFeeRate (rollingMinimumFeeRate), minReasonableRelayFee);
886
888
}
You can’t perform that action at this time.
0 commit comments