From 34bb40e3bd1754b0df76d403a4b695034472d296 Mon Sep 17 00:00:00 2001 From: pureland Date: Sun, 7 Jun 2015 14:24:35 +0800 Subject: [PATCH] Update downloader.go add hash and block TTL --- eth/downloader/downloader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 9f7f345593..3caf09c9d3 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -23,11 +23,11 @@ const ( 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 = 240 * 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 + blockSoftTTL = 240 * 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