aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-19 18:52:38 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit271a7b680af9b62ed2cdfb25975a2aa901d9828e (patch)
treeda7f7c08d005e1374dc151100fb429e00ccad5f2 /eth
parent3af359c1680a260bac6729bcc6c5a85ded247109 (diff)
downloaddexon-271a7b680af9b62ed2cdfb25975a2aa901d9828e.tar.gz
dexon-271a7b680af9b62ed2cdfb25975a2aa901d9828e.tar.zst
dexon-271a7b680af9b62ed2cdfb25975a2aa901d9828e.zip
consensus: dexcon: fetch config from state
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 87eb8a2ae..04e4569f2 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -30,7 +30,6 @@ import (
"github.com/dexon-foundation/dexon/common/hexutil"
"github.com/dexon-foundation/dexon/consensus"
"github.com/dexon-foundation/dexon/consensus/clique"
- "github.com/dexon-foundation/dexon/consensus/dexcon"
"github.com/dexon-foundation/dexon/consensus/ethash"
"github.com/dexon-foundation/dexon/core"
"github.com/dexon-foundation/dexon/core/bloombits"
@@ -225,10 +224,6 @@ func CreateDB(ctx *node.ServiceContext, config *Config, name string) (ethdb.Data
// CreateConsensusEngine creates the required type of consensus engine instance for an Ethereum service
func CreateConsensusEngine(ctx *node.ServiceContext, chainConfig *params.ChainConfig, config *ethash.Config, notify []string, noverify bool, db ethdb.Database) consensus.Engine {
// If proof-of-authority is requested, set it up
- if chainConfig.Dexcon != nil {
- return dexcon.New(chainConfig.Dexcon)
- }
- // If proof-of-authority is requested, set it up
if chainConfig.Clique != nil {
return clique.New(chainConfig.Clique, db)
}