From d575a675cc884b1bebdb6197f2ef45c51788d4a3 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Wed, 7 Sep 2022 14:38:18 +1000 Subject: [PATCH] net_processing: add thread safety annotation for m_highest_fast_announce --- 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 32a9571e117..10952d81117 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -863,7 +863,7 @@ private: std::atomic_bool m_headers_presync_should_signal{false}; /** Height of the highest block announced using BIP 152 high-bandwidth mode. */ - int m_highest_fast_announce{0}; + int m_highest_fast_announce GUARDED_BY(::cs_main){0}; /** Have we requested this block from a peer */ bool IsBlockRequested(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main);