aboutsummaryrefslogtreecommitdiffstats
path: root/dex/backend.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 11:00:04 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:38 +0800
commit593c5d4c9efa80916cc4819797bfc42348a43502 (patch)
treeaa76753d1422ac664e9dd62b149458fdd294ada2 /dex/backend.go
parent21cbe9d5b1630be351329a5715fd599030a00122 (diff)
downloadgo-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.gz
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.bz2
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.lz
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.xz
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.zst
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.zip
dex: update consensus core interface
Diffstat (limited to 'dex/backend.go')
-rw-r--r--dex/backend.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/dex/backend.go b/dex/backend.go
index 930d7886f..707b1abbb 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -20,15 +20,15 @@ package dex
import (
dexCore "github.com/dexon-foundation/dexon-consensus-core/core"
"github.com/dexon-foundation/dexon-consensus-core/core/blockdb"
- ethCrypto "github.com/dexon-foundation/dexon-consensus-core/crypto/eth"
+ "github.com/dexon-foundation/dexon-consensus-core/core/crypto/ecdsa"
- "github.com/dexon-foundation/dexon/internal/ethapi"
"github.com/dexon-foundation/dexon/accounts"
"github.com/dexon-foundation/dexon/consensus"
"github.com/dexon-foundation/dexon/core"
"github.com/dexon-foundation/dexon/core/bloombits"
"github.com/dexon-foundation/dexon/ethdb"
"github.com/dexon-foundation/dexon/event"
+ "github.com/dexon-foundation/dexon/internal/ethapi"
"github.com/dexon-foundation/dexon/node"
"github.com/dexon-foundation/dexon/p2p"
"github.com/dexon-foundation/dexon/params"
@@ -77,12 +77,11 @@ func New(ctx *node.ServiceContext, config *Config) (*Dexon, error) {
network := NewDexconNetwork()
// TODO(w): replace this with node key.
- privKey, err := ethCrypto.NewPrivateKey()
+ privKey, err := ecdsa.NewPrivateKey()
if err != nil {
panic(err)
}
- consensus := dexCore.NewConsensus(
- app, gov, db, network, privKey, ethCrypto.SigToPub)
+ consensus := dexCore.NewConsensus(app, gov, db, network, privKey)
dex := &Dexon{
config: config,