From f9e1b1e9e6a9ecdfb3e41c7ede7c26adc501383c Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Tue, 1 Apr 2014 16:53:00 +0200 Subject: [PATCH] PeerGroup: tweak global backoff to be faster. --- core/src/main/java/com/google/bitcoin/core/PeerGroup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java index 8a449f24..cd7ece31 100644 --- a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java +++ b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java @@ -202,8 +202,8 @@ public class PeerGroup extends AbstractExecutionThreadService implements Transac // Exponential backoff for peers starts at 1 second and maxes at 10 minutes. private ExponentialBackoff.Params peerBackoffParams = new ExponentialBackoff.Params(1000, 1.5f, 10 * 60 * 1000); - // Tracks failures globally in case of a network failure - private ExponentialBackoff groupBackoff = new ExponentialBackoff(new ExponentialBackoff.Params(100, 1.1f, 30 * 1000)); + // Tracks failures globally in case of a network failure. + private ExponentialBackoff groupBackoff = new ExponentialBackoff(new ExponentialBackoff.Params(1000, 1.5f, 10 * 1000)); // Things for the dedicated PeerGroup management thread to do. private LinkedBlockingQueue jobQueue = new LinkedBlockingQueue();