From 7036cf52aa080d2a63993c2298555252d507dd2f Mon Sep 17 00:00:00 2001 From: KevinMusgrave Date: Wed, 20 Apr 2022 20:43:18 -0400 Subject: [PATCH] Delete UpdatePackagesForAdded at beginning of addPackageTxs. As described in commit 9cea7e37158aa85119de2c81e93901da9e476ee5, this is no longer needed because priority transaction selection (addPriorityTxs) was removed in commit 272b25a6a99057fdcd5db5bce70b49625e973080. --- src/node/miner.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/node/miner.cpp b/src/node/miner.cpp index be5d58527bb..01e4b81ed4a 100644 --- a/src/node/miner.cpp +++ b/src/node/miner.cpp @@ -310,10 +310,6 @@ void BlockAssembler::addPackageTxs(int& nPackagesSelected, int& nDescendantsUpda // Keep track of entries that failed inclusion, to avoid duplicate work CTxMemPool::setEntries failedTx; - // Start by adding all descendants of previously added txs to mapModifiedTx - // and modifying them for their already included ancestors - UpdatePackagesForAdded(inBlock, mapModifiedTx); - CTxMemPool::indexed_transaction_set::index::type::iterator mi = m_mempool.mapTx.get().begin(); CTxMemPool::txiter iter;