aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-02-22 22:16:54 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2018-07-21 19:46:04 +0200
commit01a06d66869054dc94ffc1c02515f27873087b90 (patch)
treeec7043396c90bf011e190bb4a54ae5d502de0d3f /src/txmempool.cpp
parent07ce278455757fb46dab95fb9b97a3f6b1b84faf (diff)
Avoid locking mutexes that are already held by the same thread
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r--src/txmempool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index 8090172e3f..56f9f34c9b 100644
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -542,7 +542,7 @@ void CTxMemPool::removeForReorg(const CCoinsViewCache *pcoins, unsigned int nMem
void CTxMemPool::removeConflicts(const CTransaction &tx)
{
// Remove transactions which depend on inputs of tx, recursively
- LOCK(cs);
+ AssertLockHeld(cs);
for (const CTxIn &txin : tx.vin) {
auto it = mapNextTx.find(txin.prevout);
if (it != mapNextTx.end()) {