Merge PR #3555: Reintroduce Fees OR Semantics

This commit is contained in:
Alexander Bezobchuk
2019-02-07 18:14:54 -08:00
committed by Jack Zampolin
parent 685bfca1d4
commit 7bc837aa06
13 changed files with 71 additions and 19 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ const (
// BaseConfig defines the server's basic configuration
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).
// transaction. A transaction's fees must meet the minimum of any denomination
// specified in this config (e.g. 0.01photino;0.0001stake).
MinGasPrices string `mapstructure:"minimum-gas-prices"`
}
+2 -2
View File
@@ -14,8 +14,8 @@ const defaultConfigTemplate = `# This is a TOML config file.
##### main base config options #####
# 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).
# transaction. A transaction's fees must meet the minimum of any denomination
# specified in this config (e.g. 0.01photino;0.0001stake).
minimum-gas-prices = "{{ .BaseConfig.MinGasPrices }}"
`
+1 -1
View File
@@ -50,7 +50,7 @@ func StartCmd(ctx *Context, appCreator AppCreator) *cobra.Command {
cmd.Flags().String(flagPruning, "syncable", "Pruning strategy: syncable, nothing, everything")
cmd.Flags().String(
FlagMinGasPrices, "",
"Minimum gas prices to accept for transactions; All fees in a tx must meet this minimum (e.g. 0.01photino,0.0001stake)",
"Minimum gas prices to accept for transactions; Any fee in a tx must meet this minimum (e.g. 0.01photino;0.0001stake)",
)
// add support for all Tendermint-specific command line options