diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-07-01 06:20:49 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-07-01 06:20:49 +0800 |
commit | 60454da6507f9f391e7943e002136b8e84c32521 (patch) | |
tree | cf39c5afe2a8ef9e30b70de0013f722e026d3f14 /eth | |
parent | f43c07cb3ca0d96fd005aa7ce2ddd40876a06d11 (diff) | |
download | dexon-60454da6507f9f391e7943e002136b8e84c32521.tar.gz dexon-60454da6507f9f391e7943e002136b8e84c32521.tar.zst dexon-60454da6507f9f391e7943e002136b8e84c32521.zip |
eth/downloader: reduce hash fetches in prep for eth/61
Diffstat (limited to 'eth')
-rw-r--r-- | eth/downloader/downloader.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index b4154c166..ce85aec17 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -25,9 +25,9 @@ const ( ) var ( - MinHashFetch = 512 // Minimum amount of hashes to not consider a peer stalling - MaxHashFetch = 2048 // Amount of hashes to be fetched per retrieval request - MaxBlockFetch = 128 // Amount of blocks to be fetched per retrieval request + MinHashFetch = 512 // Minimum amount of hashes to not consider a peer stalling + MaxHashFetch = 512 // Amount of hashes to be fetched per retrieval request + MaxBlockFetch = 128 // Amount of blocks to be fetched per retrieval request hashTTL = 5 * time.Second // Time it takes for a hash request to time out blockSoftTTL = 3 * time.Second // Request completion threshold for increasing or decreasing a peer's bandwidth |