diff options
author | gary rong <garyrong0905@gmail.com> | 2017-11-24 22:10:27 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-24 22:10:27 +0800 |
commit | f14047dae57aa69e4fa08d57e19ee9c0283dfa54 (patch) | |
tree | b1b9523a4ce12e2b3cc472bdcf38df7ddbd4bdcc /les | |
parent | b0056f5bd096adf42a2c28cd76264f230c7cae20 (diff) | |
download | dexon-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar dexon-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.gz dexon-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.bz2 dexon-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.lz dexon-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.xz dexon-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.zst dexon-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.zip |
cmd, consensus, eth: split ethash related config to it own (#15520)
* cmd, consensus, eth: split ethash related config to it own
* eth, consensus: minor polish
* eth, consenus, console: compress pow testing config field to single one
* consensus, eth: document pow mode
Diffstat (limited to 'les')
-rw-r--r-- | les/backend.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/les/backend.go b/les/backend.go index 333df920e..7180b81d7 100644 --- a/les/backend.go +++ b/les/backend.go @@ -98,7 +98,7 @@ func New(ctx *node.ServiceContext, config *eth.Config) (*LightEthereum, error) { peers: peers, reqDist: newRequestDistributor(peers, quitSync), accountManager: ctx.AccountManager, - engine: eth.CreateConsensusEngine(ctx, config, chainConfig, chainDb), + engine: eth.CreateConsensusEngine(ctx, &config.Ethash, chainConfig, chainDb), shutdownChan: make(chan bool), networkId: config.NetworkId, bloomRequests: make(chan chan *bloombits.Retrieval), |