[net processing] Annotate fPreferHeaders as guarded by g_msgproc_mutex

This commit is contained in:
dergoegge 2022-09-20 12:46:39 +01:00
parent 4b84e502f5
commit 3605011e79

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. */