diff options
Diffstat (limited to 'coreth.go')
-rw-r--r-- | coreth.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -34,12 +34,15 @@ func isLocalBlock(block *types.Block) bool { return false } -func NewETHChain(config *eth.Config, etherBase *common.Address) *ETHChain { +func NewETHChain(config *eth.Config, nodecfg *node.Config, etherBase *common.Address) *ETHChain { if config == nil { config = ð.DefaultConfig } + if nodecfg == nil { + nodecfg = &node.Config{} + } mux := new(event.TypeMux) - ctx, ep, err := node.NewServiceContext(nil, mux) + ctx, ep, err := node.NewServiceContext(nodecfg, mux) if err != nil { panic(err) } |