diff options
author | Anthony Towns <aj@erisian.com.au> | 2022-09-07 14:38:18 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2022-09-15 20:28:55 +1000 |
commit | d575a675cc884b1bebdb6197f2ef45c51788d4a3 (patch) | |
tree | 32cc25784c38877ab2bf402a389b3478816171e9 /src | |
parent | 0ae7987f68211729d87c9255889f4d9d1aa6a37f (diff) |
net_processing: add thread safety annotation for m_highest_fast_announce
Diffstat (limited to 'src')
-rw-r--r-- | src/net_processing.cpp | 2 |
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); |