mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
refactor: move m_initial_sync_finished
out of header
The PeerManager implementation was moved into the source file in bitcoin#20811 (dash#5352) but the PR that introduced `m_initial_sync_finished` bitcoin#19858 (dash#5869) was merged later and didn't account for the out-of-order backport. We need to correct for that manually.
This commit is contained in:
parent
dba4cf056b
commit
4847f6e96f
@ -524,6 +524,10 @@ private:
|
|||||||
/** Whether this node is running in blocks only mode */
|
/** Whether this node is running in blocks only mode */
|
||||||
const bool m_ignore_incoming_txs;
|
const bool m_ignore_incoming_txs;
|
||||||
|
|
||||||
|
/** Whether we've completed initial sync yet, for determining when to turn
|
||||||
|
* on extra block-relay-only peers. */
|
||||||
|
bool m_initial_sync_finished{false};
|
||||||
|
|
||||||
/** Protects m_peer_map. This mutex must not be locked while holding a lock
|
/** Protects m_peer_map. This mutex must not be locked while holding a lock
|
||||||
* on any of the mutexes inside a Peer object. */
|
* on any of the mutexes inside a Peer object. */
|
||||||
mutable Mutex m_peer_mutex;
|
mutable Mutex m_peer_mutex;
|
||||||
|
@ -116,11 +116,6 @@ public:
|
|||||||
const std::chrono::microseconds time_received, const std::atomic<bool>& interruptMsgProc) = 0;
|
const std::chrono::microseconds time_received, const std::atomic<bool>& interruptMsgProc) = 0;
|
||||||
|
|
||||||
virtual bool IsBanned(NodeId pnode) = 0;
|
virtual bool IsBanned(NodeId pnode) = 0;
|
||||||
|
|
||||||
/** Whether we've completed initial sync yet, for determining when to turn
|
|
||||||
* on extra block-relay-only peers. */
|
|
||||||
bool m_initial_sync_finished{false};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BITCOIN_NET_PROCESSING_H
|
#endif // BITCOIN_NET_PROCESSING_H
|
||||||
|
Loading…
Reference in New Issue
Block a user