Skip to content

Commit db52a6a

Browse files
committed
eth: remove workaround for asynchronous processing in the downloader
1 parent 900da3d commit db52a6a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

eth/sync.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ func (pm *ProtocolManager) synchronise(peer *peer) {
175175
}
176176
// If fast sync was enabled, and we synced up, disable it
177177
if pm.fastSync {
178-
// Wait until all pending imports finish processing
179-
for pm.downloader.Synchronising() {
180-
time.Sleep(100 * time.Millisecond)
181-
}
182178
// Disable fast sync if we indeed have something in our chain
183179
if pm.blockchain.CurrentBlock().NumberU64() > 0 {
184180
glog.V(logger.Info).Infof("fast sync complete, auto disabling")

0 commit comments

Comments
 (0)