aboutsummaryrefslogtreecommitdiffstats
path: root/dex/protocol.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-01-14 19:59:57 +0800
committerGitHub <noreply@github.com>2019-01-14 19:59:57 +0800
commit5823540202423aed2cbdf8c125e95d8b1a20e245 (patch)
treeca6bc0f54e7fe5533b8bfad0c6a4b8f92064afbb /dex/protocol.go
parent16c11a809e8bdc047dca151821cd1542c81624f2 (diff)
downloaddexon-5823540202423aed2cbdf8c125e95d8b1a20e245.tar
dexon-5823540202423aed2cbdf8c125e95d8b1a20e245.tar.gz
dexon-5823540202423aed2cbdf8c125e95d8b1a20e245.tar.bz2
dexon-5823540202423aed2cbdf8c125e95d8b1a20e245.tar.lz
dexon-5823540202423aed2cbdf8c125e95d8b1a20e245.tar.xz
dexon-5823540202423aed2cbdf8c125e95d8b1a20e245.tar.zst
dexon-5823540202423aed2cbdf8c125e95d8b1a20e245.zip
params: write dMoment into ChainConfig (#150)
Diffstat (limited to 'dex/protocol.go')
-rw-r--r--dex/protocol.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/dex/protocol.go b/dex/protocol.go
index f2fe3fa25..407902137 100644
--- a/dex/protocol.go
+++ b/dex/protocol.go
@@ -106,6 +106,7 @@ const (
ErrInvalidMsgCode
ErrProtocolVersionMismatch
ErrNetworkIdMismatch
+ ErrDMomentMismatch
ErrGenesisBlockMismatch
ErrNoStatusMsg
ErrExtraStatusMsg
@@ -123,6 +124,7 @@ var errorToString = map[int]string{
ErrInvalidMsgCode: "Invalid message code",
ErrProtocolVersionMismatch: "Protocol version mismatch",
ErrNetworkIdMismatch: "NetworkId mismatch",
+ ErrDMomentMismatch: "DMoment mismatch",
ErrGenesisBlockMismatch: "Genesis block mismatch",
ErrNoStatusMsg: "No status message",
ErrExtraStatusMsg: "Extra status message",
@@ -177,6 +179,7 @@ type p2pServer interface {
type statusData struct {
ProtocolVersion uint32
NetworkId uint64
+ DMoment uint64
Number uint64
CurrentBlock common.Hash
GenesisBlock common.Hash