Skip to content

Commit f24bd45

Browse files
committed
net_processing: thread safety annotation for m_tx_relay_mutex
1 parent 2b3373c commit f24bd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ struct Peer {
291291
return m_tx_relay.get();
292292
};
293293

294-
TxRelay* GetTxRelay()
294+
TxRelay* GetTxRelay() EXCLUSIVE_LOCKS_REQUIRED(!m_tx_relay_mutex)
295295
{
296296
return WITH_LOCK(m_tx_relay_mutex, return m_tx_relay.get());
297297
};

0 commit comments

Comments
 (0)