Add warning if there are no sync peers.

This is to help track down stalls that are being seen.
This commit is contained in:
Dave Collins 2013-10-07 17:09:33 -05:00
parent 8e7d900201
commit ca5c734e05

View file

@ -129,6 +129,8 @@ func (b *blockManager) startSync(peers *list.List) {
bestPeer.lastBlock, bestPeer.addr)
bestPeer.PushGetBlocksMsg(locator, &zeroHash)
b.syncPeer = bestPeer
} else {
log.Warnf("[BMGR] No sync peer candidates available")
}
}