[net processing] Annotate fPreferHeaders as guarded by g_msgproc_mutex

This commit is contained in:
dergoegge committed 2023-03-30 14:56:19 +02:00
1 parent 4b84e502f5
commit 3605011e79
1 file changed
+1 -1
+1 -1
View File
@@ -431,7 +431,7 @@ struct CNodeState {
//! Whether we consider this a preferred download peer.
bool fPreferredDownload{false};
//! Whether this peer wants invs or headers (when possible) for block announcements.
bool fPreferHeaders{false};
bool fPreferHeaders GUARDED_BY(NetEventsInterface::g_msgproc_mutex){false};
/** Whether this peer wants invs or cmpctblocks (when possible) for block announcements. */
bool m_requested_hb_cmpctblocks{false};
/** Whether this peer will send us cmpctblocks if we request them. */