aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-12 03:55:45 +0800
committerobscuren <geffobscura@gmail.com>2014-06-12 03:55:45 +0800
commit9ee6295c752a518603de01e4feaec787c61a5dcf (patch)
treee25b46e294bf0cfc556a6a3438977c53f9052d95 /peer.go
parent1bf6f8b4a6936d8ad14b345b2cfa4dc9d1f8a360 (diff)
downloaddexon-9ee6295c752a518603de01e4feaec787c61a5dcf.tar
dexon-9ee6295c752a518603de01e4feaec787c61a5dcf.tar.gz
dexon-9ee6295c752a518603de01e4feaec787c61a5dcf.tar.bz2
dexon-9ee6295c752a518603de01e4feaec787c61a5dcf.tar.lz
dexon-9ee6295c752a518603de01e4feaec787c61a5dcf.tar.xz
dexon-9ee6295c752a518603de01e4feaec787c61a5dcf.tar.zst
dexon-9ee6295c752a518603de01e4feaec787c61a5dcf.zip
Minor changes
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/peer.go b/peer.go
index eed5bec30..acebd2756 100644
--- a/peer.go
+++ b/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
}