@@ -289,7 +289,7 @@ struct Peer {
289
289
* non-wtxid-relay peers, wtxid for wtxid-relay peers). We use the
290
290
* mempool to sort transactions in dependency order before relay, so
291
291
* this does not have to be sorted. */
292
- std::set<uint256> m_tx_inventory_to_send;
292
+ std::set<uint256> m_tx_inventory_to_send GUARDED_BY (m_tx_inventory_mutex) ;
293
293
/* * Whether the peer has requested us to send our complete mempool. Only
294
294
* permitted if the peer has NetPermissionFlags::Mempool. See BIP35. */
295
295
bool m_send_mempool GUARDED_BY (m_tx_inventory_mutex){false };
@@ -648,7 +648,7 @@ class PeerManagerImpl final : public PeerManager
648
648
std::atomic<int > m_best_height{-1 };
649
649
650
650
/* * Next time to check for stale tip */
651
- std::chrono::seconds m_stale_tip_check_time{0s};
651
+ std::chrono::seconds m_stale_tip_check_time GUARDED_BY (cs_main) {0s};
652
652
653
653
/* * Whether this node is running in -blocksonly mode */
654
654
const bool m_ignore_incoming_txs;
@@ -657,7 +657,7 @@ class PeerManagerImpl final : public PeerManager
657
657
658
658
/* * Whether we've completed initial sync yet, for determining when to turn
659
659
* on extra block-relay-only peers. */
660
- bool m_initial_sync_finished{false };
660
+ bool m_initial_sync_finished GUARDED_BY (cs_main) {false };
661
661
662
662
/* * Protects m_peer_map. This mutex must not be locked while holding a lock
663
663
* on any of the mutexes inside a Peer object. */
0 commit comments