aboutsummaryrefslogtreecommitdiff
path: root/coreth.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-08-12 13:04:52 -0400
committerDeterminant <[email protected]>2019-08-12 13:04:52 -0400
commitce505015e5f973c8f5d605aa468ad75fceeeb169 (patch)
treee1417b83881024c9dc4960dd304805327f64d615 /coreth.go
parent068cb794976da713fb4671e1bb4e4657d3dcc2b3 (diff)
...
Diffstat (limited to 'coreth.go')
-rw-r--r--coreth.go8
1 files changed, 4 insertions, 4 deletions
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 = &eth.DefaultConfig.Miner
+ config = &eth.DefaultConfig
}
if chainConfig == nil {
chainConfig = params.MainnetChainConfig
}
mux := new(event.TypeMux)
ctx := node.NewServiceContext(mux)
- backend, _ := eth.New(&ctx, &eth.DefaultConfig)
+ backend, _ := eth.New(&ctx, config)
chain := &ETHChain {
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{