diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-19 18:52:38 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 35c4bfe0326eecc3d2feeb592b6a0057038ebb3e (patch) | |
tree | 371e357b2135fc5fb3f3e1609fae31f015c1fc6b /eth | |
parent | 84c85fb081a0a821077e94c66beb391fa6fa86c9 (diff) | |
download | dexon-35c4bfe0326eecc3d2feeb592b6a0057038ebb3e.tar dexon-35c4bfe0326eecc3d2feeb592b6a0057038ebb3e.tar.gz dexon-35c4bfe0326eecc3d2feeb592b6a0057038ebb3e.tar.bz2 dexon-35c4bfe0326eecc3d2feeb592b6a0057038ebb3e.tar.lz dexon-35c4bfe0326eecc3d2feeb592b6a0057038ebb3e.tar.xz dexon-35c4bfe0326eecc3d2feeb592b6a0057038ebb3e.tar.zst dexon-35c4bfe0326eecc3d2feeb592b6a0057038ebb3e.zip |
consensus: dexcon: fetch config from state
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/eth/backend.go b/eth/backend.go index 7669805d7..c10f0138d 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" @@ -223,10 +222,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) } |