diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-20 10:10:47 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 616516320bc5565c07364718266630a0ad7acd7a (patch) | |
tree | 10846a7df9e0ffe2ee5a953714710c7b3206501c /dex/protocol.go | |
parent | 29e0161f790179e018acedf5521250d956098f91 (diff) | |
download | dexon-616516320bc5565c07364718266630a0ad7acd7a.tar.gz dexon-616516320bc5565c07364718266630a0ad7acd7a.tar.zst dexon-616516320bc5565c07364718266630a0ad7acd7a.zip |
dex: no need to rlp encode/decode now, consensus supports it
Diffstat (limited to 'dex/protocol.go')
-rw-r--r-- | dex/protocol.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dex/protocol.go b/dex/protocol.go index c17398ffb..6e531c7af 100644 --- a/dex/protocol.go +++ b/dex/protocol.go @@ -21,11 +21,7 @@ import ( "fmt" "io" "math/big" - "time" - coreCommon "github.com/dexon-foundation/dexon-consensus-core/common" - "github.com/dexon-foundation/dexon-consensus-core/core/crypto" - coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types" "github.com/dexon-foundation/dexon/common" "github.com/dexon-foundation/dexon/core" "github.com/dexon-foundation/dexon/core/types" @@ -229,6 +225,7 @@ func rlpHash(x interface{}) (h common.Hash) { return h } +/* type rlpDKGPrivateShare struct { ProposerID coreTypes.NodeID ReceiverID coreTypes.NodeID @@ -341,3 +338,4 @@ func fromMillisecond(s uint64) time.Time { func toMillisecond(t time.Time) uint64 { return uint64(t.UnixNano() / 1000000) } +*/ |