Commit 65bb07fb authored by Jeffrey Wilcke's avatar Jeffrey Wilcke

Merge pull request #1980 from fjl/downloader-deliver-hang

eth/downloader: don't hang for spurious deliveries
parents ae37a801 dd09af27
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment