From 2bd107ee79aa3920b354ea102a06663dbf6844f1 Mon Sep 17 00:00:00 2001 From: crypto-facs <84574577+crypto-facs@users.noreply.github.com> Date: Tue, 3 Aug 2021 18:35:04 +0200 Subject: [PATCH] fix: set `eth`, `web3` and `net` namespaces as default (#391) --- docs/basics/json_rpc.md | 2 +- server/config/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/basics/json_rpc.md b/docs/basics/json_rpc.md index 315e4994..f3df88bd 100644 --- a/docs/basics/json_rpc.md +++ b/docs/basics/json_rpc.md @@ -19,7 +19,7 @@ To enable RPC server use the following flag (set to true by default). ethermintd start --evm-rpc.enable ``` -By default, only `eth` namespace is enabled. In order to enable other namespaces use flag `--evm-rpc.api`. +`Eth`,`Net` and `Web3` namespaces are enabled by default. In order to enable other namespaces use flag `--evm-rpc.api`. ``` ethermintd start --evm-rpc.api eth,txpool,personal,net,debug,web3 diff --git a/server/config/config.go b/server/config/config.go index aad2fbab..c323fe0e 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -18,7 +18,7 @@ const ( // GetDefaultAPINamespaces returns the default list of JSON-RPC namespaces that should be enabled func GetDefaultAPINamespaces() []string { - return []string{"eth"} + return []string{"eth", "net", "web3"} } // AppConfig helps to override default appConfig template and configs.