aboutsummaryrefslogtreecommitdiffstats
path: root/dex/protocol.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-12-27 09:17:28 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-28 14:15:39 +0800
commit50a0622f1797096a0836246177f41f77cb4b0e8b (patch)
tree3a7ce1407fd555365733bb76c456b19aef37f126 /dex/protocol.go
parentbc18f6b29086e1a98590d41b2c1e362505af49aa (diff)
downloaddexon-50a0622f1797096a0836246177f41f77cb4b0e8b.tar.gz
dexon-50a0622f1797096a0836246177f41f77cb4b0e8b.tar.zst
dexon-50a0622f1797096a0836246177f41f77cb4b0e8b.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.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/dex/protocol.go b/dex/protocol.go
index c63dd78ca..423b35272 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