aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/config.go
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-10-27 14:04:01 -0400
committerAaron Buchwald <[email protected]>2020-10-27 15:52:20 -0400
commit28ccbeb7de18212954310588994058874fb180af (patch)
tree4bca4f77f74b31cc7948832ed45dd6b5a4bc8ef7 /plugin/evm/config.go
parent806d04e9aa4b6e22fc2a484ada6fecb0c9a348e3 (diff)
Parse config to set enabled APIsv0.3.8
Diffstat (limited to 'plugin/evm/config.go')
-rw-r--r--plugin/evm/config.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/plugin/evm/config.go b/plugin/evm/config.go
index 4669807..c38a798 100644
--- a/plugin/evm/config.go
+++ b/plugin/evm/config.go
@@ -3,19 +3,20 @@ package evm
// CommandLineConfig ...
type CommandLineConfig struct {
// Coreth APIs
- SnowmanAPIEnabled bool `json:"snowmanAPIEnabled"`
- Web3APIEnabled bool `json:"web3APIEnabled"`
- CorethAdminAPIEnabled bool `json:"corethAdminAPIEnabled"`
+ SnowmanAPIEnabled bool `json:"snowman-api-enabled"`
+ CorethAdminAPIEnabled bool `json:"coreth-admin-api-enabled"`
// Coreth API Gas/Price Caps
- RPCGasCap uint64 `json:"rpcGasCap"`
- RPCTxFeeCap float64 `json:"rpcTxFeeCap"`
+ RPCGasCap uint64 `json:"rpc-gas-cap"`
+ RPCTxFeeCap float64 `json:"rpc-tx-fee-cap"`
// Eth APIs
- EthAPIEnabled bool `json:"ethAPIEnabled"`
- PersonalAPIEnabled bool `json:"personalAPIEnabled"`
- TxPoolAPIEnabled bool `json:"txPoolAPIEnabled"`
- DebugAPIEnabled bool `json:"debugAPIEnabled"`
+ EthAPIEnabled bool `json:"eth-api-enabled"`
+ PersonalAPIEnabled bool `json:"personal-api-enabled"`
+ TxPoolAPIEnabled bool `json:"tx-pool-api-enabled"`
+ DebugAPIEnabled bool `json:"debug-api-enabled"`
+
+ ParsingError error
}
// EthAPIs returns an array of strings representing the Eth APIs that should be enabled