From ce505015e5f973c8f5d605aa468ad75fceeeb169 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 12 Aug 2019 13:04:52 -0400 Subject: ... --- coreth.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'coreth.go') diff --git a/coreth.go b/coreth.go index e43ce3e..04b24c3 100644 --- a/coreth.go +++ b/coreth.go @@ -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{ -- cgit v1.2.3-70-g09d2