diff options
author | Determinant <[email protected]> | 2019-08-12 13:04:52 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-08-12 13:04:52 -0400 |
commit | ce505015e5f973c8f5d605aa468ad75fceeeb169 (patch) | |
tree | e1417b83881024c9dc4960dd304805327f64d615 /coreth.go | |
parent | 068cb794976da713fb4671e1bb4e4657d3dcc2b3 (diff) |
...
Diffstat (limited to 'coreth.go')
-rw-r--r-- | coreth.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -248,20 +248,20 @@ func isLocalBlock(block *types.Block) bool { return false } -func NewETHChain(config *miner.Config, chainConfig *params.ChainConfig, etherBase *common.Address) *ETHChain { +func NewETHChain(config *eth.Config, chainConfig *params.ChainConfig, etherBase *common.Address) *ETHChain { if config == nil { - config = ð.DefaultConfig.Miner + config = ð.DefaultConfig } if chainConfig == nil { chainConfig = params.MainnetChainConfig } mux := new(event.TypeMux) ctx := node.NewServiceContext(mux) - backend, _ := eth.New(&ctx, ð.DefaultConfig) + backend, _ := eth.New(&ctx, config) chain := ÐChain { mux: mux, backend: backend, - worker: miner.NewWorker(config, chainConfig, &DummyEngine{}, backend, mux, isLocalBlock), + worker: miner.NewWorker(&config.Miner, chainConfig, &DummyEngine{}, backend, mux, isLocalBlock), } if etherBase == nil { etherBase = &common.Address{ |