Skip to content

Commit 25d8264

Browse files
tryphefanquake
authored andcommitted
p2p: add MAX_FEELER_CONNECTIONS constant
1 parent ad1b7b1 commit 25d8264

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ bool AppInitMain(NodeContext& node)
18791879
connOptions.m_max_outbound_full_relay = std::min(MAX_OUTBOUND_FULL_RELAY_CONNECTIONS, connOptions.nMaxConnections);
18801880
connOptions.m_max_outbound_block_relay = std::min(MAX_BLOCKS_ONLY_CONNECTIONS, connOptions.nMaxConnections-connOptions.m_max_outbound_full_relay);
18811881
connOptions.nMaxAddnode = MAX_ADDNODE_CONNECTIONS;
1882-
connOptions.nMaxFeeler = 1;
1882+
connOptions.nMaxFeeler = MAX_FEELER_CONNECTIONS;
18831883
connOptions.nBestHeight = chain_active_height;
18841884
connOptions.uiInterface = &uiInterface;
18851885
connOptions.m_banman = node.banman.get();

src/net.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ static const int MAX_OUTBOUND_FULL_RELAY_CONNECTIONS = 8;
6262
static const int MAX_ADDNODE_CONNECTIONS = 8;
6363
/** Maximum number of block-relay-only outgoing connections */
6464
static const int MAX_BLOCKS_ONLY_CONNECTIONS = 2;
65+
/** Maximum number of feeler connections */
66+
static const int MAX_FEELER_CONNECTIONS = 1;
6567
/** -listen default */
6668
static const bool DEFAULT_LISTEN = true;
6769
/** -upnp default */

0 commit comments

Comments
 (0)