mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-17 21:46:36 +00:00
log when added peer is behind (hash found in blockchain)
This commit is contained in:
parent
af6971f823
commit
47278a6e4e
1 changed files with 1 additions and 0 deletions
|
|
@ -214,6 +214,7 @@ func (self *peers) addPeer(
|
||||||
// check peer current head
|
// check peer current head
|
||||||
if self.bp.hasBlock(currentBlockHash) {
|
if self.bp.hasBlock(currentBlockHash) {
|
||||||
// peer not ahead
|
// peer not ahead
|
||||||
|
plog.Debugf("addPeer: peer <%v> with td %v and current block %s is behind", id, td, hex(currentBlockHash))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue