From a3aec37ef776a95281b7b6b797c81a57aff1b47e Mon Sep 17 00:00:00 2001 From: Michel van Kessel Date: Tue, 29 Dec 2020 12:37:30 +0100 Subject: [PATCH] test net settings --- src/net.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/net.h b/src/net.h index 5560cb8dd..2ac6db22d 100644 --- a/src/net.h +++ b/src/net.h @@ -39,11 +39,11 @@ namespace boost { } // namespace boost /** Time between pings automatically sent out for latency probing and keepalive (in seconds). */ -static const int PING_INTERVAL = 2 * 60; +static const int PING_INTERVAL = 1 * 60; /** Time after which to disconnect, after waiting for a ping response (or inactivity). */ -static const int TIMEOUT_INTERVAL = 20 * 60; +static const int TIMEOUT_INTERVAL = 5 * 60; /** Run the feeler connection loop once every 2 minutes or 120 seconds. **/ -static const int FEELER_INTERVAL = 120; +static const int FEELER_INTERVAL = 60; /** The maximum number of entries in an 'inv' protocol message */ static const unsigned int MAX_INV_SZ = 50000; /** The maximum number of new addresses to accumulate before announcing. */ @@ -65,15 +65,15 @@ static const size_t MAPASKFOR_MAX_SZ = MAX_INV_SZ; /** The maximum number of entries in setAskFor (larger due to getdata latency)*/ static const size_t SETASKFOR_MAX_SZ = 2 * MAX_INV_SZ; /** The maximum number of peer connections to maintain. */ -static const unsigned int DEFAULT_MAX_PEER_CONNECTIONS = 125; +static const unsigned int DEFAULT_MAX_PEER_CONNECTIONS = 250; /** The default for -maxuploadtarget. 0 = Unlimited */ static const uint64_t DEFAULT_MAX_UPLOAD_TARGET = 0; /** Default for blocks only*/ static const bool DEFAULT_BLOCKSONLY = false; static const bool DEFAULT_FORCEDNSSEED = false; -static const size_t DEFAULT_MAXRECEIVEBUFFER = 5 * 1000; -static const size_t DEFAULT_MAXSENDBUFFER = 1 * 1000; +static const size_t DEFAULT_MAXRECEIVEBUFFER = 15 * 1000; +static const size_t DEFAULT_MAXSENDBUFFER = 3 * 1000; static const ServiceFlags REQUIRED_SERVICES = NODE_NETWORK;