aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/config.go
diff options
context:
space:
mode:
authorStephen Buttolph <[email protected]>2020-10-30 17:29:21 -0400
committerGitHub <[email protected]>2020-10-30 17:29:21 -0400
commitc613e21ea107e8369926f4b53b7830a9d5dabf18 (patch)
tree7fbd50b5628c6f687d7c5e68886b8f39fa135481 /plugin/evm/config.go
parent806d04e9aa4b6e22fc2a484ada6fecb0c9a348e3 (diff)
parenta6ffdbbdd269fae35c5600e954bd373b619fe733 (diff)
Merge pull request #45 from ava-labs/handle-config
Parse config to set enabled APIs
Diffstat (limited to 'plugin/evm/config.go')
-rw-r--r--plugin/evm/config.go20
1 files changed, 11 insertions, 9 deletions
diff --git a/plugin/evm/config.go b/plugin/evm/config.go
index 4669807..4d6650a 100644
--- a/plugin/evm/config.go
+++ b/plugin/evm/config.go
@@ -3,19 +3,21 @@ 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"`
+ NetAPIEnabled bool `json:"net-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