aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <[email protected]>2015-10-19 12:43:38 -0400
committerSuhas Daftuar <[email protected]>2016-03-14 12:11:09 -0400
commit5de2baa138cda501038a4558bc169b2cfe5b7d6b (patch)
tree09ac5f907ece46db950951e56144caa64db61156 /src/main.cpp
parentCTxMemPool::removeForBlock now uses RemoveStaged (diff)
downloaddiscoin-5de2baa138cda501038a4558bc169b2cfe5b7d6b.tar.xz
discoin-5de2baa138cda501038a4558bc169b2cfe5b7d6b.zip
Rename CTxMemPool::remove -> removeRecursive
remove is no longer called non-recursively, so simplify the logic and eliminate an unnecessary parameter
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 027a36394..d5254806a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2502,7 +2502,7 @@ bool static DisconnectTip(CValidationState& state, const Consensus::Params& cons
list<CTransaction> removed;
CValidationState stateDummy;
if (tx.IsCoinBase() || !AcceptToMemoryPool(mempool, stateDummy, tx, false, NULL, true)) {
- mempool.remove(tx, removed, true);
+ mempool.removeRecursive(tx, removed);
} else if (mempool.exists(tx.GetHash())) {
vHashUpdate.push_back(tx.GetHash());
}