diff options
author | Sam Boyer <tech@samboyer.org> | 2014-02-19 06:24:44 +0800 |
---|---|---|
committer | Sam Boyer <tech@samboyer.org> | 2014-02-19 06:24:44 +0800 |
commit | 357b4bc14c82d206a8c813291fb3ead01ed29041 (patch) | |
tree | 75458eddf067d8943f7103ee4b713ff142bf3754 /ethwire | |
parent | 5adbd399463edc5ec800bdcf3524d64313c8add5 (diff) | |
download | go-tangerine-357b4bc14c82d206a8c813291fb3ead01ed29041.tar go-tangerine-357b4bc14c82d206a8c813291fb3ead01ed29041.tar.gz go-tangerine-357b4bc14c82d206a8c813291fb3ead01ed29041.tar.bz2 go-tangerine-357b4bc14c82d206a8c813291fb3ead01ed29041.tar.lz go-tangerine-357b4bc14c82d206a8c813291fb3ead01ed29041.tar.xz go-tangerine-357b4bc14c82d206a8c813291fb3ead01ed29041.tar.zst go-tangerine-357b4bc14c82d206a8c813291fb3ead01ed29041.zip |
Add comment explaining why iota is not used.
Diffstat (limited to 'ethwire')
-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 |