aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2022-09-07 14:38:18 +1000
committerAnthony Towns <aj@erisian.com.au>2022-09-15 20:28:55 +1000
commitd575a675cc884b1bebdb6197f2ef45c51788d4a3 (patch)
tree32cc25784c38877ab2bf402a389b3478816171e9 /src
parent0ae7987f68211729d87c9255889f4d9d1aa6a37f (diff)
net_processing: add thread safety annotation for m_highest_fast_announce
Diffstat (limited to 'src')
-rw-r--r--src/net_processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 32a9571e11..10952d8111 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);