feat: decreases minfee more quickly

This commit is contained in:
nand 2024-08-26 16:06:54 +08:00 committed by nandhh
parent 766c966bd9
commit 7279cbabbb
2 changed files with 2 additions and 2 deletions

View File

@ -1096,7 +1096,7 @@ CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const {
return CFeeRate(llround(rollingMinimumFeeRate));
int64_t time = GetTime();
if (time > lastRollingFeeUpdate + 10) {
if (time > lastRollingFeeUpdate + 1) {
double halflife = ROLLING_FEE_HALFLIFE;
if (DynamicMemoryUsage() < sizelimit / 4)
halflife /= 4;

View File

@ -457,7 +457,7 @@ protected:
public:
static const int ROLLING_FEE_HALFLIFE = 60 * 60 * 12; // public only for testing
static const int ROLLING_FEE_HALFLIFE = 60 * 36; // public only for testing
typedef boost::multi_index_container<
CTxMemPoolEntry,