diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-12-27 09:17:28 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:20 +0800 |
commit | f0405c6a1decc41a878708b0f80e4b6fd6ebbcd5 (patch) | |
tree | 286b5ef24b81a4fc595988cfbc2d850a7b272ab4 /dex/protocol.go | |
parent | e0f7ce1279a832240576e52f2417e82e3d4fc8eb (diff) | |
download | go-tangerine-f0405c6a1decc41a878708b0f80e4b6fd6ebbcd5.tar go-tangerine-f0405c6a1decc41a878708b0f80e4b6fd6ebbcd5.tar.gz go-tangerine-f0405c6a1decc41a878708b0f80e4b6fd6ebbcd5.tar.bz2 go-tangerine-f0405c6a1decc41a878708b0f80e4b6fd6ebbcd5.tar.lz go-tangerine-f0405c6a1decc41a878708b0f80e4b6fd6ebbcd5.tar.xz go-tangerine-f0405c6a1decc41a878708b0f80e4b6fd6ebbcd5.tar.zst go-tangerine-f0405c6a1decc41a878708b0f80e4b6fd6ebbcd5.zip |
dex: add pull randomness (#105)
* vendor: sync to latest core
* dex: Add PullRandomness
Diffstat (limited to 'dex/protocol.go')
-rw-r--r-- | dex/protocol.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dex/protocol.go b/dex/protocol.go index b6d672b7f..b417c91b6 100644 --- a/dex/protocol.go +++ b/dex/protocol.go @@ -59,7 +59,7 @@ var ProtocolName = "dex" var ProtocolVersions = []uint{dex64} // ProtocolLengths are the number of implemented message corresponding to different protocol versions. -var ProtocolLengths = []uint64{42} +var ProtocolLengths = []uint64{43} const ProtocolMaxMsgSize = 10 * 1024 * 1024 // Maximum cap on the size of a protocol message @@ -92,9 +92,10 @@ const ( DKGPartialSignatureMsg = 0x25 PullBlocksMsg = 0x26 PullVotesMsg = 0x27 + PullRandomnessMsg = 0x28 - GetGovStateMsg = 0x28 - GovStateMsg = 0x29 + GetGovStateMsg = 0x29 + GovStateMsg = 0x2a ) type errCode int |