diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-11-02 10:40:58 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | ace78f3a2804f2f4953f3ad9b945a4dbea221ac7 (patch) | |
tree | b796257f29d4a38c0c71b41e748e3c00641e8b19 /dex/protocol.go | |
parent | 05cdd58111500b1b40caa9feffbea6c58f277a48 (diff) | |
download | go-tangerine-ace78f3a2804f2f4953f3ad9b945a4dbea221ac7.tar.gz go-tangerine-ace78f3a2804f2f4953f3ad9b945a4dbea221ac7.tar.zst go-tangerine-ace78f3a2804f2f4953f3ad9b945a4dbea221ac7.zip |
dex: implement PullBlocks/PullVotes (#1)
Diffstat (limited to 'dex/protocol.go')
-rw-r--r-- | dex/protocol.go | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/dex/protocol.go b/dex/protocol.go index 6e531c7af..f33179b69 100644 --- a/dex/protocol.go +++ b/dex/protocol.go @@ -1,3 +1,20 @@ +// Copyright 2018 The dexon-consensus-core Authors +// This file is part of the dexon-consensus-core library. +// +// The dexon-consensus-core library is free software: you can redistribute it +// and/or modify it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The dexon-consensus-core library is distributed in the hope that it will be +// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the dexon-consensus-core library. If not, see +// <http://www.gnu.org/licenses/>. + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // @@ -43,7 +60,7 @@ var ProtocolName = "dex" var ProtocolVersions = []uint{dex64} // ProtocolLengths are the number of implemented message corresponding to different protocol versions. -var ProtocolLengths = []uint64{38} +var ProtocolLengths = []uint64{40} const ProtocolMaxMsgSize = 10 * 1024 * 1024 // Maximum cap on the size of a protocol message @@ -74,6 +91,8 @@ const ( RandomnessMsg = 0x23 DKGPrivateShareMsg = 0x24 DKGPartialSignatureMsg = 0x25 + PullBlocksMsg = 0x26 + PullVotesMsg = 0x27 ) type errCode int |