Add warning if there are no sync peers.
This is to help track down stalls that are being seen.
This commit is contained in:
parent
8e7d900201
commit
ca5c734e05
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue