aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-09-25 11:59:03 -0400
committerDeterminant <[email protected]>2019-09-25 11:59:03 -0400
commit083d6fdeeb166ac280748da735b11363075b7136 (patch)
tree9a0e8fb09f237e8ae118d3dac309b25c957c413d
parentfc9229d7d25dafe2eb37965115888d17e473ebe4 (diff)
expose node config
-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)
}