|
|
@ -81,11 +81,11 @@ public class Settings { |
|
|
|
/** Port number for inbound peer-to-peer connections. */ |
|
|
|
/** Port number for inbound peer-to-peer connections. */ |
|
|
|
private Integer listenPort; |
|
|
|
private Integer listenPort; |
|
|
|
/** Minimum number of peers to allow block minting / synchronization. */ |
|
|
|
/** Minimum number of peers to allow block minting / synchronization. */ |
|
|
|
private int minBlockchainPeers = 10; |
|
|
|
private int minBlockchainPeers = 8; |
|
|
|
/** Target number of outbound connections to peers we should make. */ |
|
|
|
/** Target number of outbound connections to peers we should make. */ |
|
|
|
private int minOutboundPeers = 25; |
|
|
|
private int minOutboundPeers = 16; |
|
|
|
/** Maximum number of peer connections we allow. */ |
|
|
|
/** Maximum number of peer connections we allow. */ |
|
|
|
private int maxPeers = 50; |
|
|
|
private int maxPeers = 32; |
|
|
|
/** Maximum number of threads for network engine. */ |
|
|
|
/** Maximum number of threads for network engine. */ |
|
|
|
private int maxNetworkThreadPoolSize = 20; |
|
|
|
private int maxNetworkThreadPoolSize = 20; |
|
|
|
|
|
|
|
|
|
|
|