Skip to content

Commit 3605011

Browse files
committed
[net processing] Annotate fPreferHeaders as guarded by g_msgproc_mutex
1 parent 4b84e50 commit 3605011

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
@@ -431,7 +431,7 @@ struct CNodeState {
431431
//! Whether we consider this a preferred download peer.
432432
bool fPreferredDownload{false};
433433
//! Whether this peer wants invs or headers (when possible) for block announcements.
434-
bool fPreferHeaders{false};
434+
bool fPreferHeaders GUARDED_BY(NetEventsInterface::g_msgproc_mutex){false};
435435
/** Whether this peer wants invs or cmpctblocks (when possible) for block announcements. */
436436
bool m_requested_hb_cmpctblocks{false};
437437
/** Whether this peer will send us cmpctblocks if we request them. */

0 commit comments

Comments
 (0)