mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-03 07:52:33 +02:00
feat: decreases minfee more quickly
This commit is contained in:
parent
766c966bd9
commit
7279cbabbb
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user