Merge PR #3364: Use dash-separated flags for minimus gas prices

This commit is contained in:
Alessio Treglia
2019-01-24 11:21:02 +01:00
committed by Christopher Goes
parent 0043912548
commit ee33d8248e
5 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ type BaseConfig struct {
// The minimum gas prices a validator is willing to accept for processing a
// transaction. A transaction's fees must meet the minimum of each denomination
// specified in this config (e.g. 0.01photino,0.0001stake).
MinGasPrices string `mapstructure:"minimum_gas_prices"`
MinGasPrices string `mapstructure:"minimum-gas-prices"`
}
// Config defines the server's top level configuration
+1 -1
View File
@@ -16,7 +16,7 @@ const defaultConfigTemplate = `# This is a TOML config file.
# The minimum gas prices a validator is willing to accept for processing a
# transaction. A transaction's fees must meet the minimum of each denomination
# specified in this config (e.g. 0.01photino,0.0001stake).
minimum_gas_prices = "{{ .BaseConfig.MinGasPrices }}"
minimum-gas-prices = "{{ .BaseConfig.MinGasPrices }}"
`
var configTemplate *template.Template
+1 -1
View File
@@ -21,7 +21,7 @@ const (
flagAddress = "address"
flagTraceStore = "trace-store"
flagPruning = "pruning"
FlagMinGasPrices = "minimum_gas_prices"
FlagMinGasPrices = "minimum-gas-prices"
)
// StartCmd runs the service passed in, either stand-alone or in-process with