3
0
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:
Miron Cuperman (devrandom) 2011-07-19 17:59:39 +00:00
parent f68edc80cc
commit b9aae06490

View File

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