net_processing: add thread safety annotations for PeerManagerImpl members accessed only via the msgproc thread

This commit is contained in:
Anthony Towns 2022-09-13 12:27:20 +10:00
parent a66a7ccb82
commit 0ae7987f68

View File

@ -751,7 +751,7 @@ private:
int nSyncStarted GUARDED_BY(cs_main) = 0;
/** Hash of the last block we received via INV */
uint256 m_last_block_inv_triggering_headers_sync{};
uint256 m_last_block_inv_triggering_headers_sync GUARDED_BY(g_msgproc_mutex){};
/**
* Sources of received blocks, saved to be able punish them when processing