diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-02-22 22:16:54 +0100 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-07-21 19:46:04 +0200 |
commit | 01a06d66869054dc94ffc1c02515f27873087b90 (patch) | |
tree | ec7043396c90bf011e190bb4a54ae5d502de0d3f /src/txmempool.h | |
parent | 07ce278455757fb46dab95fb9b97a3f6b1b84faf (diff) |
Avoid locking mutexes that are already held by the same thread
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index ebfcf36e11..784d5453b2 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -544,7 +544,7 @@ public: void removeRecursive(const CTransaction &tx, MemPoolRemovalReason reason = MemPoolRemovalReason::UNKNOWN); void removeForReorg(const CCoinsViewCache *pcoins, unsigned int nMemPoolHeight, int flags); - void removeConflicts(const CTransaction &tx); + void removeConflicts(const CTransaction &tx) EXCLUSIVE_LOCKS_REQUIRED(cs); void removeForBlock(const std::vector<CTransactionRef>& vtx, unsigned int nBlockHeight); void clear(); |