diff options
author | Determinant <[email protected]> | 2019-09-25 11:59:03 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-09-25 11:59:03 -0400 |
commit | 083d6fdeeb166ac280748da735b11363075b7136 (patch) | |
tree | 9a0e8fb09f237e8ae118d3dac309b25c957c413d | |
parent | fc9229d7d25dafe2eb37965115888d17e473ebe4 (diff) |
expose node config
-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) } |