Commit Graph

4 Commits

Author SHA1 Message Date
Steven Allen 8af58b283a fix: minimal varint decoding
* Enforce minimal varint encoding when decoding multiaddrs.
* Ensure codecs fit in 32bit integers for compatibility. We can increase the
size, but we'd need to change the `Protocol.Codec` type from `int` to `uint64`.
2019-09-19 14:43:22 -07:00
Cole Brown d462e342b7 Fix yet another bug in VarintSize, add test 2018-11-29 18:58:36 -05:00
Cole Brown 1a8ba0918f Fix bug in VarintSize
:100644 100644 79ebe2f b0ced77 M	varint.go
2018-11-29 18:13:54 -05:00
Steven Allen 1ae1320955 refactor the protocol definition files
Also use `AddProtocol` for *all* protocols (even predefined ones).
2018-07-18 09:09:29 -07:00