From b9aae0649094ce726fb7162f42bd49bc3f90ca88 Mon Sep 17 00:00:00 2001 From: "Miron Cuperman (devrandom)" Date: Tue, 19 Jul 2011 17:59:39 +0000 Subject: [PATCH] Default PeerGroup connections now 4 --- src/com/google/bitcoin/core/PeerGroup.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/google/bitcoin/core/PeerGroup.java b/src/com/google/bitcoin/core/PeerGroup.java index d3ce3380e..b96824240 100644 --- a/src/com/google/bitcoin/core/PeerGroup.java +++ b/src/com/google/bitcoin/core/PeerGroup.java @@ -55,7 +55,7 @@ import java.util.concurrent.atomic.AtomicInteger; * */ 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); @@ -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) { this.maxConnections = maxConnections;