aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-10-30 11:33:41 -0400
committerAaron Buchwald <[email protected]>2020-10-30 11:33:41 -0400
commit4862c2d3a6c18855fee72137db54ed62a0ce6704 (patch)
tree07e5f447b7bcd818582c7967e98b40d16bec0312 /plugin/evm/vm.go
parent4023ae20cb2b7cd228a68670bc55a6c9cdbabc36 (diff)
Add back net API
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 1f7e501..c902f85 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -530,6 +530,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, ", ")))