aboutsummaryrefslogtreecommitdiffstats
path: root/eth/api_backend.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-03-22 08:37:24 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-03-22 08:37:24 +0800
commit9b84caf3a5f55cc2a14b50291118b9fab668b8c2 (patch)
tree0c9f92abf034f6a3e8f0cbc7458b209331fd7c8f /eth/api_backend.go
parent06d6685eb58f6cb0eda4d7adc8ae91e5cdb88462 (diff)
downloaddexon-9b84caf3a5f55cc2a14b50291118b9fab668b8c2.tar.gz
dexon-9b84caf3a5f55cc2a14b50291118b9fab668b8c2.tar.zst
dexon-9b84caf3a5f55cc2a14b50291118b9fab668b8c2.zip
core, eth, les: support resuming fast sync on heavy rollback (#3743)
Diffstat (limited to 'eth/api_backend.go')
-rw-r--r--eth/api_backend.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/eth/api_backend.go b/eth/api_backend.go
index 5a5c4c532..bce772900 100644
--- a/eth/api_backend.go
+++ b/eth/api_backend.go
@@ -51,6 +51,7 @@ func (b *EthApiBackend) CurrentBlock() *types.Block {
}
func (b *EthApiBackend) SetHead(number uint64) {
+ b.eth.protocolManager.downloader.Cancel()
b.eth.blockchain.SetHead(number)
}