From db52a6a0ffced52477eec45ada8f3233415c3d18 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 18 Nov 2015 12:29:17 +0100 Subject: [PATCH] eth: remove workaround for asynchronous processing in the downloader --- eth/sync.go | 4 ---- 1 file changed, 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")