Skip to content

Commit

Permalink
Modify minOutboundPeers, maxPeers and maxNetworkThreadPoolSize defaul…
Browse files Browse the repository at this point in the history
…t settings

Typical users don't need quite so many connections, so minOutboundPeers and
maxPeers reduced accordingly.

maxNetworkThreadPoolSize increased from 10 to 20.
  • Loading branch information
catbref committed Mar 24, 2020
1 parent 51e59f6 commit 0b42a7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/qortal/settings/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b42a7a

Please sign in to comment.