mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Cancel pending downloader tasks before rewinding
This commit is contained in:
parent
7c729f542b
commit
3c284fa8af
1 changed files with 1 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ func rewindBack(eth *Ethereum, head uint64, rewindTo uint64) {
|
|||
}
|
||||
|
||||
func rewind(eth *Ethereum, head uint64, rewindTo uint64) {
|
||||
eth.handler.downloader.Cancel()
|
||||
err := eth.blockchain.SetHead(rewindTo)
|
||||
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue