aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-19 23:34:32 +0800
committerobscuren <geffobscura@gmail.com>2015-04-19 23:37:01 +0800
commited07ffcde5ab661a9fd41045c5ec102e7839001c (patch)
tree4af398baf6244ef760d26d56893f33ec8229c015 /eth/downloader/downloader.go
parentdcf1a1988ab692664a21bafbd534eb30c9f5adf6 (diff)
downloaddexon-ed07ffcde5ab661a9fd41045c5ec102e7839001c.tar
dexon-ed07ffcde5ab661a9fd41045c5ec102e7839001c.tar.gz
dexon-ed07ffcde5ab661a9fd41045c5ec102e7839001c.tar.bz2
dexon-ed07ffcde5ab661a9fd41045c5ec102e7839001c.tar.lz
dexon-ed07ffcde5ab661a9fd41045c5ec102e7839001c.tar.xz
dexon-ed07ffcde5ab661a9fd41045c5ec102e7839001c.tar.zst
dexon-ed07ffcde5ab661a9fd41045c5ec102e7839001c.zip
downloader: fixed tests with low ttl
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r--eth/downloader/downloader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index f8fc4fc30..c4af5e17b 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -20,12 +20,12 @@ import (
const (
maxBlockFetch = 256 // Amount of max blocks to be fetched per chunk
peerCountTimeout = 12 * time.Second // Amount of time it takes for the peer handler to ignore minDesiredPeerCount
- blockTtl = 20 * time.Second // The amount of time it takes for a block request to time out
hashTtl = 20 * time.Second // The amount of time it takes for a hash request to time out
)
var (
- minDesiredPeerCount = 5 // Amount of peers desired to start syncing
+ minDesiredPeerCount = 5 // Amount of peers desired to start syncing
+ blockTtl = 20 * time.Second // The amount of time it takes for a block request to time out
errLowTd = errors.New("peer's TD is too low")
errBusy = errors.New("busy")