Skip to content

Commit 0ae7987

Browse files
committed
net_processing: add thread safety annotations for PeerManagerImpl members accessed only via the msgproc thread
1 parent a66a7cc commit 0ae7987

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
@@ -751,7 +751,7 @@ class PeerManagerImpl final : public PeerManager
751751
int nSyncStarted GUARDED_BY(cs_main) = 0;
752752

753753
/** Hash of the last block we received via INV */
754-
uint256 m_last_block_inv_triggering_headers_sync{};
754+
uint256 m_last_block_inv_triggering_headers_sync GUARDED_BY(g_msgproc_mutex){};
755755

756756
/**
757757
* Sources of received blocks, saved to be able punish them when processing

0 commit comments

Comments
 (0)