diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-12-02 10:12:19 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-12-02 10:17:43 +0100 |
commit | bdda4d567eedd44d3088980fa47ab03827103f68 (patch) | |
tree | 085c3f0ff182276ba87cc9eb1c2b8713ba503231 /src/txmempool.h | |
parent | 4a63f946760666adcb1a4dde26fc7c6d31c301af (diff) | |
parent | dd5862c4cdc02535948042fe519694166bcd2bb7 (diff) |
Merge pull request #6872
dd5862c Flush coins cache also after transaction processing (Pieter Wuille)
bde953e Uncache input txn in utxo cache if a tx is not accepted to mempool (Matt Corallo)
97bf377 Add CCoinsViewCache::HaveCoinsInCache to check if a tx is cached (Matt Corallo)
677aa3d Discard txn cache entries that were loaded for removed mempool txn (Matt Corallo)
b2e74bd Get the set of now-uncacheable-txn from CTxMemPool::TrimToSize (Matt Corallo)
74d0f90 Add method to remove a tx from CCoinsViewCache if it is unchanged (Matt Corallo)
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 5652969f4b..9203171868 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -483,8 +483,11 @@ public: */ CFeeRate GetMinFee(size_t sizelimit) const; - /** Remove transactions from the mempool until its dynamic size is <= sizelimit. */ - void TrimToSize(size_t sizelimit); + /** Remove transactions from the mempool until its dynamic size is <= sizelimit. + * pvNoSpendsRemaining, if set, will be populated with the list of transactions + * which are not in mempool which no longer have any spends in this mempool. + */ + void TrimToSize(size_t sizelimit, std::vector<uint256>* pvNoSpendsRemaining=NULL); /** Expire all transaction (and their dependencies) in the mempool older than time. Return the number of removed transactions. */ int Expire(int64_t time); |