Skip to content

Commit 689b747

Browse files
committed
[net processing] Annotate m_headers_sync_timeout as guarded by g_msgproc_mutex
1 parent d8c0d1c commit 689b747

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
@@ -420,7 +420,7 @@ struct CNodeState {
420420
//! Whether we've started headers synchronization with this peer.
421421
bool fSyncStarted{false};
422422
//! When to potentially disconnect peer for stalling headers download
423-
std::chrono::microseconds m_headers_sync_timeout{0us};
423+
std::chrono::microseconds m_headers_sync_timeout GUARDED_BY(NetEventsInterface::g_msgproc_mutex){0us};
424424
//! Since when we're stalling block download progress (in microseconds), or 0.
425425
std::chrono::microseconds m_stalling_since{0us};
426426
std::list<QueuedBlock> vBlocksInFlight;

0 commit comments

Comments
 (0)