P2p: fix version number sizes

This commit is contained in:
Benjamin Canou 2018-03-08 14:40:28 +01:00
parent 801bdf3d4c
commit 640671c7c5

View File

@ -23,8 +23,8 @@ let encoding =
(fun (name, major, minor) -> { name; major; minor }) (fun (name, major, minor) -> { name; major; minor })
(obj3 (obj3
(req "name" string) (req "name" string)
(req "major" int8) (req "major" uint16)
(req "minor" int8)) (req "minor" uint16))
(* the common version for a pair of peers, if any, is the maximum one, (* the common version for a pair of peers, if any, is the maximum one,
in lexicographic order *) in lexicographic order *)