aboutsummaryrefslogtreecommitdiffstats
path: root/dex/protocol.go
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-20 10:10:47 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:50 +0800
commitdca561583b7657dd65b39e0a196cb026d608ba11 (patch)
treee3ef80028dab1c72e1666009ffed69c54cbbdb3d /dex/protocol.go
parenta18db064261a0336d7cf5b375583ece163d42dbb (diff)
downloaddexon-dca561583b7657dd65b39e0a196cb026d608ba11.tar
dexon-dca561583b7657dd65b39e0a196cb026d608ba11.tar.gz
dexon-dca561583b7657dd65b39e0a196cb026d608ba11.tar.bz2
dexon-dca561583b7657dd65b39e0a196cb026d608ba11.tar.lz
dexon-dca561583b7657dd65b39e0a196cb026d608ba11.tar.xz
dexon-dca561583b7657dd65b39e0a196cb026d608ba11.tar.zst
dexon-dca561583b7657dd65b39e0a196cb026d608ba11.zip
dex: no need to rlp encode/decode now, consensus supports it
Diffstat (limited to 'dex/protocol.go')
-rw-r--r--dex/protocol.go6
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)
}
+*/