From 86ecdcd5ff8c86a5d1c25322230cfcef0a2cfe8d Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 19 Apr 2015 00:15:05 +0200 Subject: [PATCH] downloader: reset hashTtl on receive --- eth/downloader/downloader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 8f955b4836..2d417dcf58 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -211,6 +211,8 @@ out: for { select { case hashes := <-d.hashCh: + failureResponse.Reset(hashTtl) + var done bool // determines whether we're done fetching hashes (i.e. common hash found) hashSet := set.New() for _, hash := range hashes {