From b0a55882b2c2c8c6ab62f3c672827ed431f16597 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 7 Feb 2018 21:15:39 +0400 Subject: [PATCH] lower the minRecvRate See https://github.com/tendermint/tendermint/issues/1177#issuecomment-363720118 --- blockchain/pool.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blockchain/pool.go b/blockchain/pool.go index 63f4a2d32..95956757c 100644 --- a/blockchain/pool.go +++ b/blockchain/pool.go @@ -35,7 +35,10 @@ const ( // Minimum recv rate to ensure we're receiving blocks from a peer fast // enough. If a peer is not sending us data at at least that rate, we // consider them to have timedout and we disconnect. - minRecvRate = 10240 // 10 KB/s + // + // Assuming a DSL connection (not a good choice) 128 Kbps (upload) ~ 15 KB/s, + // sending data across atlantic ~ 7.5 KB/s. + minRecvRate = 7680 ) var peerTimeoutSeconds = time.Duration(15) // not const so we can override with tests