diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-13 21:56:01 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-13 21:56:01 +0800 |
commit | de3a71cafdbf20ad5887033aa991131bfb6e0ed2 (patch) | |
tree | 9e8bda40e268c91153a262fd2b709dc91805fc20 /eth/downloader | |
parent | 48ee0777a5acbf59aab691866eae5e9adf172f95 (diff) | |
download | dexon-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.go | 4 |
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 } |