mirror of
https://github.com/btcsuite/btcd.git
synced 2025-01-19 05:33:36 +01:00
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
@ -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 New Issue
Block a user