aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2022-09-20 12:46:39 +0100
committerdergoegge <n.goeggi@gmail.com>2023-03-30 14:56:19 +0200
commit3605011e79d0d43ff532a2c3cc9cad4cc48eb06c (patch)
tree4f8c31e42596728337435eb918acac19f06f8150 /src/net_processing.cpp
parent4b84e502f5ba69d650191ce8f2e20b86c1d427ed (diff)
[net processing] Annotate fPreferHeaders as guarded by g_msgproc_mutex
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 7c2802ec63..d9d4d3f5ea 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -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. */