diff options
| author | Hennadii Stepanov <[email protected]> | 2020-09-01 12:12:47 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-09-01 12:34:11 +0300 |
| commit | 939807768acd508932f2efabee660d56324a73df (patch) | |
| tree | a5613b17a715fbbd089922b342d379fcbdca5a66 /src/txmempool.h | |
| parent | Merge #19668: Do not hide compile-time thread safety warnings (diff) | |
| download | discoin-939807768acd508932f2efabee660d56324a73df.tar.xz discoin-939807768acd508932f2efabee660d56324a73df.zip | |
refactor: CTxMemPool::UpdateParent() requires CTxMemPool::cs lock
No change in behavior, the lock is already held at call sites.
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 4743e1b63..fbff1afcc 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -568,7 +568,7 @@ private: typedef std::map<txiter, TxLinks, CompareIteratorByHash> txlinksMap; txlinksMap mapLinks; - void UpdateParent(txiter entry, txiter parent, bool add); + void UpdateParent(txiter entry, txiter parent, bool add) EXCLUSIVE_LOCKS_REQUIRED(cs); void UpdateChild(txiter entry, txiter child, bool add); std::vector<indexed_transaction_set::const_iterator> GetSortedDepthAndScore() const EXCLUSIVE_LOCKS_REQUIRED(cs); |