From 0ae7987f68211729d87c9255889f4d9d1aa6a37f Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Tue, 13 Sep 2022 12:27:20 +1000 Subject: [PATCH] net_processing: add thread safety annotations for PeerManagerImpl members accessed only via the msgproc thread --- 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 ce32a7d236..32a9571e11 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -751,7 +751,7 @@ private: int nSyncStarted GUARDED_BY(cs_main) = 0; /** Hash of the last block we received via INV */ - uint256 m_last_block_inv_triggering_headers_sync{}; + uint256 m_last_block_inv_triggering_headers_sync GUARDED_BY(g_msgproc_mutex){}; /** * Sources of received blocks, saved to be able punish them when processing