diff options
author | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-02-19 18:38:02 +0800 |
---|---|---|
committer | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-02-19 18:38:02 +0800 |
commit | 531b3a96ebc408c00f67cee00ebe7fe192bf0b8c (patch) | |
tree | 18cbb9c612c9b1f4785cbc54b12c5e292d6f6627 /ethwire/messaging.go | |
parent | 3dae732f36981e279bfd4b28d59711611d6a29af (diff) | |
parent | 357b4bc14c82d206a8c813291fb3ead01ed29041 (diff) | |
download | dexon-531b3a96ebc408c00f67cee00ebe7fe192bf0b8c.tar dexon-531b3a96ebc408c00f67cee00ebe7fe192bf0b8c.tar.gz dexon-531b3a96ebc408c00f67cee00ebe7fe192bf0b8c.tar.bz2 dexon-531b3a96ebc408c00f67cee00ebe7fe192bf0b8c.tar.lz dexon-531b3a96ebc408c00f67cee00ebe7fe192bf0b8c.tar.xz dexon-531b3a96ebc408c00f67cee00ebe7fe192bf0b8c.tar.zst dexon-531b3a96ebc408c00f67cee00ebe7fe192bf0b8c.zip |
Merge pull request #5 from sdboyer/iotas
Idiomatic go: use iotas for const declarations
Diffstat (limited to 'ethwire/messaging.go')
-rw-r--r-- | ethwire/messaging.go | 3 |
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 |