net_processing: add thread safety annotation for m_highest_fast_announce

This commit is contained in:
Anthony Towns 2022-09-07 14:38:18 +10:00
parent 0ae7987f68
commit d575a675cc

View file

@ -863,7 +863,7 @@ private:
std::atomic_bool m_headers_presync_should_signal{false}; std::atomic_bool m_headers_presync_should_signal{false};
/** Height of the highest block announced using BIP 152 high-bandwidth mode. */ /** 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 */ /** Have we requested this block from a peer */
bool IsBlockRequested(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main); bool IsBlockRequested(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main);