server: add api.enable flag for Cosmos SDK API server (#908)

* add api.enable flag for Cosmos SDK Rest server

* update changelog

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
crypto-facs
2022-01-17 19:08:02 +01:00
committed by GitHub
co-authored by Federico Kunze Küllmer
parent 317f5b43b5
commit 0a01cead67
5 changed files with 10 additions and 3 deletions
+5 -1
View File
@@ -24,6 +24,11 @@ const (
GRPCWebAddress = "grpc-web.address"
)
// RPCEnable Defines if Cosmos-sdk REST server should be enabled
const (
RPCEnable = "api.enable"
)
// JSON-RPC flags
const (
JSONRPCEnable = "json-rpc.enable"
@@ -34,7 +39,6 @@ const (
JSONRPCEVMTimeout = "json-rpc.evm-timeout"
JSONRPCTxFeeCap = "json-rpc.txfee-cap"
JSONRPCFilterCap = "json-rpc.filter-cap"
JSONRPFeeHistoryCap = "json-rpc.feehistory-cap"
JSONRPCLogsCap = "json-rpc.logs-cap"
JSONRPCBlockRangeCap = "json-rpc.block-range-cap"
)