From dca561583b7657dd65b39e0a196cb026d608ba11 Mon Sep 17 00:00:00 2001 From: Sonic Date: Sat, 20 Oct 2018 10:10:47 +0800 Subject: dex: no need to rlp encode/decode now, consensus supports it --- dex/protocol.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dex/protocol.go') 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) } +*/ -- cgit v1.2.3