mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 11:45:51 +00:00
Default PeerGroup connections now 4
This commit is contained in:
parent
f68edc80cc
commit
b9aae06490
@ -55,7 +55,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class PeerGroup {
|
public class PeerGroup {
|
||||||
private static final int DEFAULT_CONNECTIONS = 10;
|
private static final int DEFAULT_CONNECTIONS = 4;
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(PeerGroup.class);
|
private static final Logger log = LoggerFactory.getLogger(PeerGroup.class);
|
||||||
|
|
||||||
@ -103,9 +103,9 @@ public class PeerGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param maxConnections the maximum number of peer connections that this group will try to make.
|
* Depending on the environment, this should normally be between 1 and 10, default is 4.
|
||||||
*
|
*
|
||||||
* Depending on the environment, this should normally be between 1 and 10, default is 10.
|
* @param maxConnections the maximum number of peer connections that this group will try to make.
|
||||||
*/
|
*/
|
||||||
public void setMaxConnections(int maxConnections) {
|
public void setMaxConnections(int maxConnections) {
|
||||||
this.maxConnections = maxConnections;
|
this.maxConnections = maxConnections;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user