aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2022-09-20 12:37:48 +0100
committerdergoegge <n.goeggi@gmail.com>2023-03-30 14:56:19 +0200
commit689b747fc34a5670a24bb5c4b1986dd8670b55ef (patch)
tree5a2046a85f04c7a157ba7efdcf7ed120a8ae16af
parentd8c0d1c345546c6066274edbf3bf4fb5d6f75419 (diff)
downloadbitcoin-689b747fc34a5670a24bb5c4b1986dd8670b55ef.tar.xz
[net processing] Annotate m_headers_sync_timeout as guarded by g_msgproc_mutex
-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 ddb735f00a..946c9e62d5 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -420,7 +420,7 @@ struct CNodeState {
//! Whether we've started headers synchronization with this peer.
bool fSyncStarted{false};
//! When to potentially disconnect peer for stalling headers download
- std::chrono::microseconds m_headers_sync_timeout{0us};
+ std::chrono::microseconds m_headers_sync_timeout GUARDED_BY(NetEventsInterface::g_msgproc_mutex){0us};
//! Since when we're stalling block download progress (in microseconds), or 0.
std::chrono::microseconds m_stalling_since{0us};
std::list<QueuedBlock> vBlocksInFlight;