mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
Add tags to mempool's mapTx indices
This commit is contained in:
@@ -859,9 +859,9 @@ void CTxMemPool::RemoveStaged(setEntries &stage) {
|
||||
|
||||
int CTxMemPool::Expire(int64_t time) {
|
||||
LOCK(cs);
|
||||
indexed_transaction_set::nth_index<2>::type::iterator it = mapTx.get<2>().begin();
|
||||
indexed_transaction_set::index<entry_time>::type::iterator it = mapTx.get<entry_time>().begin();
|
||||
setEntries toremove;
|
||||
while (it != mapTx.get<2>().end() && it->GetTime() < time) {
|
||||
while (it != mapTx.get<entry_time>().end() && it->GetTime() < time) {
|
||||
toremove.insert(mapTx.project<0>(it));
|
||||
it++;
|
||||
}
|
||||
@@ -957,7 +957,7 @@ void CTxMemPool::TrimToSize(size_t sizelimit, std::vector<uint256>* pvNoSpendsRe
|
||||
unsigned nTxnRemoved = 0;
|
||||
CFeeRate maxFeeRateRemoved(0);
|
||||
while (DynamicMemoryUsage() > sizelimit) {
|
||||
indexed_transaction_set::nth_index<1>::type::iterator it = mapTx.get<1>().begin();
|
||||
indexed_transaction_set::index<descendant_score>::type::iterator it = mapTx.get<descendant_score>().begin();
|
||||
|
||||
// We set the new mempool min fee to the feerate of the removed set, plus the
|
||||
// "minimum reasonable fee rate" (ie some value under which we consider txn
|
||||
|
||||
Reference in New Issue
Block a user