diff options
author | Matt Corallo <git@bluematt.me> | 2015-10-13 00:43:15 -0700 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2015-10-13 01:39:38 -0700 |
commit | 074cb155c2f01ba6ddc555c01943fc20c46c0b46 (patch) | |
tree | 46461c075f6e47dbb42f1e599b03026d872e2df4 /src/txmempool.h | |
parent | d355cf4420043a866e418c97778d999cd1958f61 (diff) |
Add reasonable test case for mempool trimming
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index e8572e7bda..319b972c3a 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -290,11 +290,13 @@ private: mutable int64_t lastRollingFeeUpdate; mutable bool blockSinceLastRollingFeeBump; mutable double rollingMinimumFeeRate; //! minimum fee to get into the pool, decreases exponentially - static const int ROLLING_FEE_HALFLIFE = 60 * 60 * 12; void trackPackageRemoved(const CFeeRate& rate); public: + + static const int ROLLING_FEE_HALFLIFE = 60 * 60 * 12; // public only for testing + typedef boost::multi_index_container< CTxMemPoolEntry, boost::multi_index::indexed_by< |