aboutsummaryrefslogtreecommitdiff
path: root/plugin/params.go
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-10-20 12:20:49 -0400
committerAaron Buchwald <[email protected]>2020-10-20 12:20:49 -0400
commitcccb47666b2bccce378a9a56824061ea3a9a95fa (patch)
tree36822cea4b16638e6a246af209ccdf77b3eb2088 /plugin/params.go
parent77681f0af89a2c22ed24b4a7edb1f7b3d3a6c442 (diff)
Add RPC GasCap and TxFeeCap to CLI config
Diffstat (limited to 'plugin/params.go')
-rw-r--r--plugin/params.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/params.go b/plugin/params.go
index 9881551..1810295 100644
--- a/plugin/params.go
+++ b/plugin/params.go
@@ -32,7 +32,10 @@ func init() {
if *config == "default" {
cliConfig.EthAPIEnabled = true
cliConfig.TxPoolAPIEnabled = true
+ cliConfig.RPCGasCap = 2500000000 // 25000000 x 100
+ cliConfig.RPCTxFeeCap = 100 // 100 AVAX
} else {
+ // TODO only overwrite values that were explicitly set
errs.Add(json.Unmarshal([]byte(*config), &cliConfig))
}
}