eth/downloader: log hard timeouts and reset capacity

This commit is contained in:
Péter Szilágyi
2015-06-05 11:53:46 +03:00
parent 067e66b348
commit 94e4aa6ea9
2 changed files with 4 additions and 0 deletions

View File

@ -460,6 +460,7 @@ out:
// 3) Amount and availability.
if peer := d.peers.Peer(pid); peer != nil {
peer.Demote()
glog.V(logger.Detail).Infof("%s: block delivery timeout", peer)
}
}
// After removing bad peers make sure we actually have sufficient peer left to keep downloading