From 066c23ca8882e779fc98865355f121fd8a3288de Mon Sep 17 00:00:00 2001 From: Pczz <37879756+Pczz@users.noreply.github.com> Date: Fri, 6 Jul 2018 14:04:04 +0800 Subject: [PATCH] NODE CONNECTIONS up to 20 MAX_OUTBOUND_CONNECTIONS and MAX_ADDNODE_CONNECTIONS change to 20 --- src/net.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net.h b/src/net.h index dc727152a..9d492e267 100644 --- a/src/net.h +++ b/src/net.h @@ -59,9 +59,9 @@ static const unsigned int MAX_PROTOCOL_MESSAGE_LENGTH = 4 * 1000 * 1000; /** Maximum length of strSubVer in `version` message */ static const unsigned int MAX_SUBVERSION_LENGTH = 256; /** Maximum number of automatic outgoing nodes */ -static const int MAX_OUTBOUND_CONNECTIONS = 8; +static const int MAX_OUTBOUND_CONNECTIONS = 20; /** Maximum number of addnode outgoing nodes */ -static const int MAX_ADDNODE_CONNECTIONS = 8; +static const int MAX_ADDNODE_CONNECTIONS = 20; /** -listen default */ static const bool DEFAULT_LISTEN = true; /** -upnp default */