cosmos-sdk/server/v2/flags.go
Akhil Kumar P 81a225e6a2
feat(server/v2): add min gas price and check with tx fee (#21173)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-08-29 07:46:58 +00:00

26 lines
770 B
Go

// Package serverv2 defines constants for server configuration flags and output formats.
package serverv2
import "fmt"
// start flags are prefixed with the server name
// this allows viper to properly bind the flags
func prefix(f string) string {
return fmt.Sprintf("%s.%s", serverName, f)
}
var FlagMinGasPrices = prefix("minimum-gas-prices")
const (
// FlagHome specifies the home directory flag.
FlagHome = "home"
FlagLogLevel = "log_level" // Sets the logging level
FlagLogFormat = "log_format" // Specifies the log output format
FlagLogNoColor = "log_no_color" // Disables colored log output
FlagTrace = "trace" // Enables trace-level logging
// OutputFormatJSON defines the JSON output format option.
OutputFormatJSON = "json"
)