friends – Enhance most variety of outgoing connections for full node


Problem resolved. I used to be in a position to get 16 outgoing full relay connections which can be steady utilizing the beneath modifications in code:

Including beneath strains in src/init.cpp

argsman.AddArg("-maxoutfullrelay=<n>", strprintf("Keep at most <n> outbound full relay connections to friends (default: %u)", MAX_OUTBOUND_FULL_RELAY_CONNECTIONS), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);

int nMaxOutboundFullRelay;

nMaxOutboundFullRelay = args.GetArg("-maxoutfullrelay", MAX_OUTBOUND_FULL_RELAY_CONNECTIONS);
nMaxOutboundFullRelay = std::max(nMaxOutboundFullRelay, 0);

connOptions.m_max_outbound_full_relay = std::min(nMaxOutboundFullRelay, connOptions.nMaxConnections);

And maxoutfullrelay=16 in bitcoin.conf. Tried with 20 as properly and it really works high-quality.

Supply hyperlink

Leave a reply