From ca5c734e0543d4f75b32eb9322524e1b06ed4eaa Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 7 Oct 2013 17:09:33 -0500 Subject: [PATCH] Add warning if there are no sync peers. This is to help track down stalls that are being seen. --- blockmanager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blockmanager.go b/blockmanager.go index 01833e73..0d9e8517 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -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") } }