From ef6a2143ff32e544b375812a4e7919428d4c0ac4 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Wed, 20 Feb 2019 13:05:08 +0100 Subject: [PATCH] PeerGroup: Lower stall download speed requirement from 20 to 10 blocks per second. --- core/src/main/java/org/bitcoinj/core/PeerGroup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/core/PeerGroup.java b/core/src/main/java/org/bitcoinj/core/PeerGroup.java index 788c33c4..5df47a92 100644 --- a/core/src/main/java/org/bitcoinj/core/PeerGroup.java +++ b/core/src/main/java/org/bitcoinj/core/PeerGroup.java @@ -1734,7 +1734,7 @@ public class PeerGroup implements TransactionBroadcaster { } @GuardedBy("lock") private int stallPeriodSeconds = 10; - @GuardedBy("lock") private int stallMinSpeedBytesSec = Block.HEADER_SIZE * 20; + @GuardedBy("lock") private int stallMinSpeedBytesSec = Block.HEADER_SIZE * 10; /** * Configures the stall speed: the speed at which a peer is considered to be serving us the block chain @@ -1745,7 +1745,7 @@ public class PeerGroup implements TransactionBroadcaster { * avoid false stalls. * * @param periodSecs How many seconds the download speed must be below blocksPerSec, defaults to 10. - * @param bytesPerSecond Download speed (only blocks/txns count) must be consistently below this for a stall, defaults to the bandwidth required for 20 block headers per second. + * @param bytesPerSecond Download speed (only blocks/txns count) must be consistently below this for a stall, defaults to the bandwidth required for 10 block headers per second. */ public void setStallThreshold(int periodSecs, int bytesPerSecond) { lock.lock();