mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-27 20:12:23 +00:00
Made the debug line for invalid peer versions dynamic
This commit is contained in:
parent
36572f03a7
commit
4eb3ad192e
1 changed files with 1 additions and 1 deletions
2
peer.go
2
peer.go
|
|
@ -549,7 +549,7 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) {
|
||||||
c := msg.Data
|
c := msg.Data
|
||||||
|
|
||||||
if c.Get(0).Uint() != ProtocolVersion {
|
if c.Get(0).Uint() != ProtocolVersion {
|
||||||
ethutil.Config.Log.Debugln("Invalid peer version. Require protocol v5")
|
ethutil.Config.Log.Debugln("Invalid peer version. Require protocol:", ProtocolVersion)
|
||||||
p.Stop()
|
p.Stop()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue