Skip to content

Commit

Permalink
eth: remove workaround for asynchronous processing in the downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Nov 19, 2015
1 parent 900da3d commit db52a6a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions eth/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit db52a6a

Please sign in to comment.