From 9b84caf3a5f55cc2a14b50291118b9fab668b8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 22 Mar 2017 02:37:24 +0200 Subject: core, eth, les: support resuming fast sync on heavy rollback (#3743) --- les/api_backend.go | 1 + 1 file changed, 1 insertion(+) (limited to 'les/api_backend.go') diff --git a/les/api_backend.go b/les/api_backend.go index 264b381f5..006240369 100644 --- a/les/api_backend.go +++ b/les/api_backend.go @@ -50,6 +50,7 @@ func (b *LesApiBackend) CurrentBlock() *types.Block { } func (b *LesApiBackend) SetHead(number uint64) { + b.eth.protocolManager.downloader.Cancel() b.eth.blockchain.SetHead(number) } -- cgit v1.2.3