mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-16 16:32:47 +00:00
qa: Add lock order annotation for TxMempool::cs
This commit is contained in:
parent
e98d36715e
commit
9085dee476
@ -257,7 +257,7 @@ public:
|
||||
* changing the chain tip. It's necessary to keep both mutexes locked until
|
||||
* the mempool is consistent with the new chain tip and fully populated.
|
||||
*/
|
||||
mutable RecursiveMutex cs;
|
||||
mutable RecursiveMutex cs ACQUIRED_AFTER(::cs_main);
|
||||
std::unique_ptr<TxGraph> m_txgraph GUARDED_BY(cs);
|
||||
mutable std::unique_ptr<TxGraph::BlockBuilder> m_builder GUARDED_BY(cs);
|
||||
indexed_transaction_set mapTx GUARDED_BY(cs);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user