diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-30 00:47:00 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-06-08 18:23:57 +0800 |
commit | eedb25b22ac466d8165153589b0e4a7c7de69128 (patch) | |
tree | a42895aaf81fdaa1bd951c519f99e3c278e3591a /eth/downloader/downloader.go | |
parent | c6faa18ec9630066683548ed410e364555fd838d (diff) | |
download | go-tangerine-eedb25b22ac466d8165153589b0e4a7c7de69128.tar go-tangerine-eedb25b22ac466d8165153589b0e4a7c7de69128.tar.gz go-tangerine-eedb25b22ac466d8165153589b0e4a7c7de69128.tar.bz2 go-tangerine-eedb25b22ac466d8165153589b0e4a7c7de69128.tar.lz go-tangerine-eedb25b22ac466d8165153589b0e4a7c7de69128.tar.xz go-tangerine-eedb25b22ac466d8165153589b0e4a7c7de69128.tar.zst go-tangerine-eedb25b22ac466d8165153589b0e4a7c7de69128.zip |
eth/downloader: clean up tests and unused variables
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r-- | eth/downloader/downloader.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 9f7f34559..de6ee1734 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -22,15 +22,13 @@ const ( MaxHashFetch = 2048 // Amount of hashes to be fetched per retrieval request MaxBlockFetch = 128 // Amount of blocks to be fetched per retrieval request - peerCountTimeout = 12 * time.Second // Amount of time it takes for the peer handler to ignore minDesiredPeerCount - hashTTL = 5 * time.Second // Time it takes for a hash request to time out + hashTTL = 5 * time.Second // Time it takes for a hash request to time out ) var ( - blockSoftTTL = 3 * time.Second // Request completion threshold for increasing or decreasing a peer's bandwidth - blockHardTTL = 3 * blockSoftTTL // Maximum time allowance before a block request is considered expired - crossCheckCycle = time.Second // Period after which to check for expired cross checks - minDesiredPeerCount = 5 // Amount of peers desired to start syncing + blockSoftTTL = 3 * time.Second // Request completion threshold for increasing or decreasing a peer's bandwidth + blockHardTTL = 3 * blockSoftTTL // Maximum time allowance before a block request is considered expired + crossCheckCycle = time.Second // Period after which to check for expired cross checks ) var ( |