Avoid locking mutexes that are already held by the same thread

This commit is contained in:
practicalswift
2018-02-22 22:16:54 +01:00
parent 07ce278455
commit 01a06d6686
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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()) {