From 2c585a9328458475ff07140177a94b94eac73fbb Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sat, 19 Jun 2021 17:25:50 +0100 Subject: [PATCH] Upper connection time limit reduced from 60 mins to 20 mins. Now that we aren't disconnecting mid sync, we can get away with more frequent disconnections. This brings the average connection length to around 9 mins. --- src/main/java/org/qortal/settings/Settings.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/qortal/settings/Settings.java b/src/main/java/org/qortal/settings/Settings.java index 7f67195e..5ffd87c0 100644 --- a/src/main/java/org/qortal/settings/Settings.java +++ b/src/main/java/org/qortal/settings/Settings.java @@ -133,9 +133,9 @@ public class Settings { private boolean allowConnectionsWithOlderPeerVersions = true; /** Minimum time (in seconds) that we should attempt to remain connected to a peer for */ - private int minPeerConnectionTime = 2 * 60; + private int minPeerConnectionTime = 2 * 60; // seconds /** Maximum time (in seconds) that we should attempt to remain connected to a peer for */ - private int maxPeerConnectionTime = 60 * 60; + private int maxPeerConnectionTime = 20 * 60; // seconds // Which blockchains this node is running private String blockchainConfig = null; // use default from resources