aboutsummaryrefslogtreecommitdiffstats
path: root/ethwire/messaging.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-19 18:40:02 +0800
committerobscuren <geffobscura@gmail.com>2014-02-19 18:40:02 +0800
commit0936e5ccf5c8fc842cbd135c02a6abcd009b4e7f (patch)
tree9c867dbb5061be01bb040f9bafcf12236679383e /ethwire/messaging.go
parent24f2b2afc3a848190822c382e6aa31c8ab120f07 (diff)
parent531b3a96ebc408c00f67cee00ebe7fe192bf0b8c (diff)
downloaddexon-0936e5ccf5c8fc842cbd135c02a6abcd009b4e7f.tar
dexon-0936e5ccf5c8fc842cbd135c02a6abcd009b4e7f.tar.gz
dexon-0936e5ccf5c8fc842cbd135c02a6abcd009b4e7f.tar.bz2
dexon-0936e5ccf5c8fc842cbd135c02a6abcd009b4e7f.tar.lz
dexon-0936e5ccf5c8fc842cbd135c02a6abcd009b4e7f.tar.xz
dexon-0936e5ccf5c8fc842cbd135c02a6abcd009b4e7f.tar.zst
dexon-0936e5ccf5c8fc842cbd135c02a6abcd009b4e7f.zip
Merge branch 'develop' of github.com-obscure:ethereum/eth-go into develop
Conflicts: ethutil/config.go
Diffstat (limited to 'ethwire/messaging.go')
-rw-r--r--ethwire/messaging.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ethwire/messaging.go b/ethwire/messaging.go
index 651bf4710..185faa341 100644
--- a/ethwire/messaging.go
+++ b/ethwire/messaging.go
@@ -19,6 +19,9 @@ var MagicToken = []byte{34, 64, 8, 145}
type MsgType byte
const (
+ // Values are given explicitly instead of by iota because these values are
+ // defined by the wire protocol spec; it is easier for humans to ensure
+ // correctness when values are explicit.
MsgHandshakeTy = 0x00
MsgDiscTy = 0x01
MsgPingTy = 0x02