aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorDan Laine <[email protected]>2020-11-05 15:06:35 -0500
committerDan Laine <[email protected]>2020-11-05 15:06:35 -0500
commit06168d588c550afe373f03b47c75244dfa4c60cb (patch)
treeb58135ec87b10872b366d469a4902f4104c60a84 /plugin/evm/vm.go
parent52de74ce47a2614af3b3a32b21aa5309d4b00d78 (diff)
parenta6ffdbbdd269fae35c5600e954bd373b619fe733 (diff)
Merge tag 'v0.3.12' into v0.3.12-with-id-updatev0.3.12-id-update
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index c191720..53dc349 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -515,6 +515,10 @@ func (vm *VM) CreateHandlers() map[string]*commonEng.HTTPHandler {
handler.RegisterName("admin", &admin.Performance{})
enabledAPIs = append(enabledAPIs, "coreth-admin")
}
+ if vm.CLIConfig.NetAPIEnabled {
+ handler.RegisterName("net", &NetAPI{vm})
+ enabledAPIs = append(enabledAPIs, "net")
+ }
log.Info(fmt.Sprintf("Enabled APIs: %s", strings.Join(enabledAPIs, ", ")))