aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-13 21:56:01 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-13 21:56:01 +0800
commitde3a71cafdbf20ad5887033aa991131bfb6e0ed2 (patch)
tree9e8bda40e268c91153a262fd2b709dc91805fc20 /eth/downloader
parent48ee0777a5acbf59aab691866eae5e9adf172f95 (diff)
downloaddexon-de3a71cafdbf20ad5887033aa991131bfb6e0ed2.tar
dexon-de3a71cafdbf20ad5887033aa991131bfb6e0ed2.tar.gz
dexon-de3a71cafdbf20ad5887033aa991131bfb6e0ed2.tar.bz2
dexon-de3a71cafdbf20ad5887033aa991131bfb6e0ed2.tar.lz
dexon-de3a71cafdbf20ad5887033aa991131bfb6e0ed2.tar.xz
dexon-de3a71cafdbf20ad5887033aa991131bfb6e0ed2.tar.zst
dexon-de3a71cafdbf20ad5887033aa991131bfb6e0ed2.zip
eth/downloader: remove a redundant sync progress check
Diffstat (limited to 'eth/downloader')
-rw-r--r--eth/downloader/downloader.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index ba380eca3..5850ea13a 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -86,10 +86,6 @@ func New(hasBlock hashCheckFn, getBlock getBlockFn) *Downloader {
hashCh: make(chan hashPack, 1),
blockCh: make(chan blockPack, 1),
}
- // Set the initial downloader state as canceled (sanity check)
- downloader.cancelCh = make(chan struct{})
- close(downloader.cancelCh)
-
return downloader
}