|
|
|
@ -346,7 +346,6 @@ func (d *Downloader) Synchronise(id string, head common.Hash, td *big.Int, mode |
|
|
|
|
case nil, errBusy, errCanceled: |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if errors.Is(err, errInvalidChain) || errors.Is(err, errBadPeer) || errors.Is(err, errTimeout) || |
|
|
|
|
errors.Is(err, errStallingPeer) || errors.Is(err, errUnsyncedPeer) || errors.Is(err, errEmptyHeaderSet) || |
|
|
|
|
errors.Is(err, errPeersUnavailable) || errors.Is(err, errTooOld) || errors.Is(err, errInvalidAncestor) { |
|
|
|
@ -1764,7 +1763,7 @@ func (d *Downloader) processFastSyncContent() error { |
|
|
|
|
}() |
|
|
|
|
|
|
|
|
|
closeOnErr := func(s *stateSync) { |
|
|
|
|
if err := s.Wait(); err != nil && err != errCancelStateFetch && err != errCanceled { |
|
|
|
|
if err := s.Wait(); err != nil && err != errCancelStateFetch && err != errCanceled && err != snap.ErrCancelled { |
|
|
|
|
d.queue.Close() // wake up Results
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|