diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-17 10:43:10 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:23 +0800 |
commit | 5f64e1d10d620a8a299ff3a40695f26107f157c5 (patch) | |
tree | e28e2bf073ac7da8417e5b0789d2d0713e240ae7 /dex/protocol.go | |
parent | 9493109f2be4507605e6b17e406bf8fd147ab3c8 (diff) | |
download | go-tangerine-5f64e1d10d620a8a299ff3a40695f26107f157c5.tar.gz go-tangerine-5f64e1d10d620a8a299ff3a40695f26107f157c5.tar.zst go-tangerine-5f64e1d10d620a8a299ff3a40695f26107f157c5.zip |
core: fill in genesis timstamp and remove dMoment from protocol handshake (#263)
Fill in dmoment as genesis block timestamp. This allow us to remove
dMoment check from protocol handshake since genesis block hash itself
will protect us against different dMoment.
Diffstat (limited to 'dex/protocol.go')
-rw-r--r-- | dex/protocol.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/dex/protocol.go b/dex/protocol.go index afa6e560d..e09829cc8 100644 --- a/dex/protocol.go +++ b/dex/protocol.go @@ -106,7 +106,6 @@ const ( ErrInvalidMsgCode ErrProtocolVersionMismatch ErrNetworkIdMismatch - ErrDMomentMismatch ErrGenesisBlockMismatch ErrNoStatusMsg ErrExtraStatusMsg @@ -129,7 +128,6 @@ 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", @@ -180,7 +178,6 @@ type p2pServer interface { type statusData struct { ProtocolVersion uint32 NetworkId uint64 - DMoment uint64 Number uint64 CurrentBlock common.Hash GenesisBlock common.Hash |