From 00e8f2d99b3c6b27d8047712baf5bbb6150dc273 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Fri, 19 Oct 2018 18:52:38 +0800 Subject: consensus: dexcon: fetch config from state --- eth/backend.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'eth/backend.go') 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" @@ -224,10 +223,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) -- cgit v1.2.3