aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2015-10-19 12:43:38 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2016-03-14 12:11:09 -0400
commit5de2baa138cda501038a4558bc169b2cfe5b7d6b (patch)
tree09ac5f907ece46db950951e56144caa64db61156 /src/main.cpp
parent7659438a63ef162b4a4f942f86683ae6785f8162 (diff)
downloadbitcoin-5de2baa138cda501038a4558bc169b2cfe5b7d6b.tar.xz
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 027a36394c..d5254806ad 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());
}