Skip to content

Commit d575a67

Browse files
committed
net_processing: add thread safety annotation for m_highest_fast_announce
1 parent 0ae7987 commit d575a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ class PeerManagerImpl final : public PeerManager
863863
std::atomic_bool m_headers_presync_should_signal{false};
864864

865865
/** Height of the highest block announced using BIP 152 high-bandwidth mode. */
866-
int m_highest_fast_announce{0};
866+
int m_highest_fast_announce GUARDED_BY(::cs_main){0};
867867

868868
/** Have we requested this block from a peer */
869869
bool IsBlockRequested(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main);

0 commit comments

Comments
 (0)