Skip to content

Commit ec4c6a1

Browse files
committed
scripted-diff: replace MAX_BLOCKS_ONLY_CONNECTIONS with MAX_BLOCK_RELAY_ONLY_CONNECTIONS
-BEGIN VERIFY SCRIPT- sed -i 's/\<MAX_BLOCKS_ONLY_CONNECTIONS\>/MAX_BLOCK_RELAY_ONLY_CONNECTIONS/g' src/init.cpp sed -i 's/\<MAX_BLOCKS_ONLY_CONNECTIONS\>/MAX_BLOCK_RELAY_ONLY_CONNECTIONS/g' src/net.h -END VERIFY SCRIPT-
1 parent a65b55f commit ec4c6a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node)
18891889
connOptions.nLocalServices = nLocalServices;
18901890
connOptions.nMaxConnections = nMaxConnections;
18911891
connOptions.m_max_outbound_full_relay = std::min(MAX_OUTBOUND_FULL_RELAY_CONNECTIONS, connOptions.nMaxConnections);
1892-
connOptions.m_max_outbound_block_relay = std::min(MAX_BLOCKS_ONLY_CONNECTIONS, connOptions.nMaxConnections-connOptions.m_max_outbound_full_relay);
1892+
connOptions.m_max_outbound_block_relay = std::min(MAX_BLOCK_RELAY_ONLY_CONNECTIONS, connOptions.nMaxConnections-connOptions.m_max_outbound_full_relay);
18931893
connOptions.nMaxAddnode = MAX_ADDNODE_CONNECTIONS;
18941894
connOptions.nMaxFeeler = MAX_FEELER_CONNECTIONS;
18951895
connOptions.nBestHeight = chain_active_height;

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static const int MAX_OUTBOUND_FULL_RELAY_CONNECTIONS = 8;
6161
/** Maximum number of addnode outgoing nodes */
6262
static const int MAX_ADDNODE_CONNECTIONS = 8;
6363
/** Maximum number of block-relay-only outgoing connections */
64-
static const int MAX_BLOCKS_ONLY_CONNECTIONS = 2;
64+
static const int MAX_BLOCK_RELAY_ONLY_CONNECTIONS = 2;
6565
/** Maximum number of feeler connections */
6666
static const int MAX_FEELER_CONNECTIONS = 1;
6767
/** -listen default */

0 commit comments

Comments
 (0)