From 4862c2d3a6c18855fee72137db54ed62a0ce6704 Mon Sep 17 00:00:00 2001 From: Aaron Buchwald Date: Fri, 30 Oct 2020 11:33:41 -0400 Subject: Add back net API --- plugin/evm/vm.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugin/evm/vm.go') 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, ", "))) -- cgit v1.2.3