Skip to content

Commit 1d96a47

Browse files
committed
merge bitcoin#25119: move StartExtraBlockRelayPeers() from header to implementation
1 parent 37e0c58 commit 1d96a47

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/net.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3141,6 +3141,12 @@ void CConnman::SetTryNewOutboundPeer(bool flag)
31413141
LogPrint(BCLog::NET, "net: setting try another outbound peer=%s\n", flag ? "true" : "false");
31423142
}
31433143

3144+
void CConnman::StartExtraBlockRelayPeers()
3145+
{
3146+
LogPrint(BCLog::NET, "net: enabling extra block-relay-only peers\n");
3147+
m_start_extra_block_relay_peers = true;
3148+
}
3149+
31443150
// Return the number of peers we have over our outbound connection limit
31453151
// Exclude peers that are marked for disconnect, or are going to be
31463152
// disconnected soon (eg ADDR_FETCH and FEELER)

src/net.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <hash.h>
1717
#include <i2p.h>
1818
#include <limitedmap.h>
19-
#include <logging.h>
2019
#include <net_permissions.h>
2120
#include <netaddress.h>
2221
#include <netbase.h>
@@ -1464,10 +1463,7 @@ friend class CNode;
14641463
void SetTryNewOutboundPeer(bool flag);
14651464
bool GetTryNewOutboundPeer() const;
14661465

1467-
void StartExtraBlockRelayPeers() {
1468-
LogPrint(BCLog::NET, "net: enabling extra block-relay-only peers\n");
1469-
m_start_extra_block_relay_peers = true;
1470-
}
1466+
void StartExtraBlockRelayPeers();
14711467

14721468
// Return the number of outbound peers we have in excess of our target (eg,
14731469
// if we previously called SetTryNewOutboundPeer(true), and have since set

0 commit comments

Comments
 (0)