Skip to content

Commit 4847f6e

Browse files
committed
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.
1 parent dba4cf0 commit 4847f6e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/net_processing.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,10 @@ class PeerManagerImpl final : public PeerManager
524524
/** Whether this node is running in blocks only mode */
525525
const bool m_ignore_incoming_txs;
526526

527+
/** Whether we've completed initial sync yet, for determining when to turn
528+
* on extra block-relay-only peers. */
529+
bool m_initial_sync_finished{false};
530+
527531
/** Protects m_peer_map. This mutex must not be locked while holding a lock
528532
* on any of the mutexes inside a Peer object. */
529533
mutable Mutex m_peer_mutex;

src/net_processing.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ class PeerManager : public CValidationInterface, public NetEventsInterface
116116
const std::chrono::microseconds time_received, const std::atomic<bool>& interruptMsgProc) = 0;
117117

118118
virtual bool IsBanned(NodeId pnode) = 0;
119-
120-
/** Whether we've completed initial sync yet, for determining when to turn
121-
* on extra block-relay-only peers. */
122-
bool m_initial_sync_finished{false};
123-
124119
};
125120

126121
#endif // BITCOIN_NET_PROCESSING_H

0 commit comments

Comments
 (0)