From 0b42a7ad63209fd2a317890ab35b5b0df7b6d60d Mon Sep 17 00:00:00 2001 From: catbref Date: Tue, 24 Mar 2020 09:24:22 +0000 Subject: [PATCH] Modify minOutboundPeers, maxPeers and maxNetworkThreadPoolSize default settings Typical users don't need quite so many connections, so minOutboundPeers and maxPeers reduced accordingly. maxNetworkThreadPoolSize increased from 10 to 20. --- src/main/java/org/qortal/settings/Settings.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/qortal/settings/Settings.java b/src/main/java/org/qortal/settings/Settings.java index c2ded70bc..39dd01af9 100644 --- a/src/main/java/org/qortal/settings/Settings.java +++ b/src/main/java/org/qortal/settings/Settings.java @@ -79,11 +79,11 @@ public class Settings { /** Minimum number of peers to allow block minting / synchronization. */ private int minBlockchainPeers = 10; /** Target number of outbound connections to peers we should make. */ - private int minOutboundPeers = 40; + private int minOutboundPeers = 25; /** Maximum number of peer connections we allow. */ - private int maxPeers = 80; + private int maxPeers = 50; /** Maximum number of threads for network engine. */ - private int maxNetworkThreadPoolSize = 10; + private int maxNetworkThreadPoolSize = 20; // Which blockchains this node is running private String blockchainConfig = null; // use default from resources