log when added peer is behind (hash found in blockchain)

This commit is contained in:
zelig 2015-03-03 03:39:21 +07:00
parent af6971f823
commit 47278a6e4e
1 changed files with 1 additions and 0 deletions

View File

@ -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
}