aboutsummaryrefslogtreecommitdiffstats
path: root/blockpool
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-03 04:39:21 +0800
committerzelig <viktor.tron@gmail.com>2015-03-03 04:39:21 +0800
commit47278a6e4eb4b8dc02ff322ba24c9c225267ffe5 (patch)
tree224e1859b65e583dc24f39b6a91dc1cd32625917 /blockpool
parentaf6971f823431e091142dc81f1b252f681d086cf (diff)
downloaddexon-47278a6e4eb4b8dc02ff322ba24c9c225267ffe5.tar.gz
dexon-47278a6e4eb4b8dc02ff322ba24c9c225267ffe5.tar.zst
dexon-47278a6e4eb4b8dc02ff322ba24c9c225267ffe5.zip
log when added peer is behind (hash found in blockchain)
Diffstat (limited to 'blockpool')
-rw-r--r--blockpool/peers.go1
1 files changed, 1 insertions, 0 deletions
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
}