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.
This commit is contained in:
CalDescent 2021-06-19 17:25:50 +01:00
parent 45b0d9e19b
commit 2c585a9328

View File

@ -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