Browse Source

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.
sync-multiple-blocks^2
CalDescent 3 years ago
parent
commit
2c585a9328
  1. 4
      src/main/java/org/qortal/settings/Settings.java

4
src/main/java/org/qortal/settings/Settings.java

@ -133,9 +133,9 @@ public class Settings {
private boolean allowConnectionsWithOlderPeerVersions = true; private boolean allowConnectionsWithOlderPeerVersions = true;
/** Minimum time (in seconds) that we should attempt to remain connected to a peer for */ /** 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 */ /** 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 // Which blockchains this node is running
private String blockchainConfig = null; // use default from resources private String blockchainConfig = null; // use default from resources

Loading…
Cancel
Save