From baa79e9df08788bb2356c0f572acb057828414fd Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 31 May 2017 03:28:55 +0200 Subject: [PATCH] eth/downloader: remove last use of cancelCh in statesync.go Fixes TestDeliverHeadersHang*Fast and (hopefully) the weird cancellation behaviour at the end of fast sync. --- eth/downloader/statesync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/downloader/statesync.go b/eth/downloader/statesync.go index e35b26c5a5..0115375751 100644 --- a/eth/downloader/statesync.go +++ b/eth/downloader/statesync.go @@ -54,7 +54,7 @@ func (d *Downloader) syncState(root common.Hash) *stateSync { s := newStateSync(d, root) select { case d.stateSyncStart <- s: - case <-d.cancelCh: + case <-d.quitCh: s.err = errCancelStateFetch close(s.done) }