From 9085dee476d21daab786e88848597c755beecee4 Mon Sep 17 00:00:00 2001 From: David Gumberg Date: Wed, 11 Mar 2026 18:49:42 -0700 Subject: [PATCH] qa: Add lock order annotation for TxMempool::cs --- src/txmempool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/txmempool.h b/src/txmempool.h index d7b7de6e3b7..d172c78e860 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -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 m_txgraph GUARDED_BY(cs); mutable std::unique_ptr m_builder GUARDED_BY(cs); indexed_transaction_set mapTx GUARDED_BY(cs);