aboutsummaryrefslogtreecommitdiff
path: root/coreth.go
diff options
context:
space:
mode:
Diffstat (limited to 'coreth.go')
-rw-r--r--coreth.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/coreth.go b/coreth.go
index 3046b97..f3180e6 100644
--- a/coreth.go
+++ b/coreth.go
@@ -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 = &eth.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)
}