diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-11-19 22:19:21 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-11-19 22:19:21 +0800 |
commit | 65bb07fb4e738608bd0d3b5183a1458a3b4bd368 (patch) | |
tree | 6a547311accfb257c64cba2662a05a470fb8ca4c /eth/sync.go | |
parent | ae37a8013d5a348bdb21d4a66d5f462e0baf7cd8 (diff) | |
parent | dd09af27af13f21867728ec34e68ba02e30e179f (diff) | |
download | go-tangerine-65bb07fb4e738608bd0d3b5183a1458a3b4bd368.tar go-tangerine-65bb07fb4e738608bd0d3b5183a1458a3b4bd368.tar.gz go-tangerine-65bb07fb4e738608bd0d3b5183a1458a3b4bd368.tar.bz2 go-tangerine-65bb07fb4e738608bd0d3b5183a1458a3b4bd368.tar.lz go-tangerine-65bb07fb4e738608bd0d3b5183a1458a3b4bd368.tar.xz go-tangerine-65bb07fb4e738608bd0d3b5183a1458a3b4bd368.tar.zst go-tangerine-65bb07fb4e738608bd0d3b5183a1458a3b4bd368.zip |
Merge pull request #1980 from fjl/downloader-deliver-hang
eth/downloader: don't hang for spurious deliveries
Diffstat (limited to 'eth/sync.go')
-rw-r--r-- | eth/sync.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/eth/sync.go b/eth/sync.go index bbf2abc04..dd8aef8e4 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -175,10 +175,6 @@ func (pm *ProtocolManager) synchronise(peer *peer) { } // If fast sync was enabled, and we synced up, disable it if pm.fastSync { - // Wait until all pending imports finish processing - for pm.downloader.Synchronising() { - time.Sleep(100 * time.Millisecond) - } // Disable fast sync if we indeed have something in our chain if pm.blockchain.CurrentBlock().NumberU64() > 0 { glog.V(logger.Info).Infof("fast sync complete, auto disabling") |