From f24bd45b37e1b2d19e5a053dbfefa30306c1d41a Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Sat, 21 May 2022 01:08:31 +1000 Subject: [PATCH] net_processing: thread safety annotation for m_tx_relay_mutex --- src/net_processing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 7aa1c052412..b81119bdd6d 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -291,7 +291,7 @@ struct Peer { return m_tx_relay.get(); }; - TxRelay* GetTxRelay() + TxRelay* GetTxRelay() EXCLUSIVE_LOCKS_REQUIRED(!m_tx_relay_mutex) { return WITH_LOCK(m_tx_relay_mutex, return m_tx_relay.get()); };