mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 21:57:54 +02:00
qa: Add lock order annotation for TxMempool::cs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user