From 47278a6e4eb4b8dc02ff322ba24c9c225267ffe5 Mon Sep 17 00:00:00 2001 From: zelig Date: Tue, 3 Mar 2015 03:39:21 +0700 Subject: log when added peer is behind (hash found in blockchain) --- blockpool/peers.go | 1 + 1 file changed, 1 insertion(+) (limited to 'blockpool') diff --git a/blockpool/peers.go b/blockpool/peers.go index 576d6e41d..9c4ffc5c6 100644 --- a/blockpool/peers.go +++ b/blockpool/peers.go @@ -214,6 +214,7 @@ func (self *peers) addPeer( // check peer current head if self.bp.hasBlock(currentBlockHash) { // peer not ahead + plog.Debugf("addPeer: peer <%v> with td %v and current block %s is behind", id, td, hex(currentBlockHash)) return false } -- cgit v1.2.3