Add reasonable test case for mempool trimming

This commit is contained in:
Matt Corallo
2015-10-13 00:43:15 -07:00
parent d355cf4420
commit 074cb155c2
2 changed files with 157 additions and 1 deletions

View File

@@ -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<