Minor changes
This commit is contained in:
4
peer.go
4
peer.go
@ -17,7 +17,7 @@ const (
|
||||
// The size of the output buffer for writing messages
|
||||
outputBufferSize = 50
|
||||
// Current protocol version
|
||||
ProtocolVersion = 17
|
||||
ProtocolVersion = 20
|
||||
)
|
||||
|
||||
type DiscReason byte
|
||||
@ -603,7 +603,7 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) {
|
||||
c := msg.Data
|
||||
|
||||
if c.Get(0).Uint() != ProtocolVersion {
|
||||
ethutil.Config.Log.Debugln("Invalid peer version. Require protocol:", ProtocolVersion)
|
||||
ethutil.Config.Log.Debugf("Invalid peer version. Require protocol: %d. Received: %d\n", ProtocolVersion, c.Get(0).Uint())
|
||||
p.Stop()
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user