-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.go
25 lines (20 loc) · 896 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main
import serverconfig "github.com/cosmos/cosmos-sdk/server/config"
// initAppConfig generates contents for `app.toml`. Take the default template
// and config, append custom parameters.
func initAppConfig() (string, interface{}) {
template := serverconfig.DefaultConfigTemplate
cfg := serverconfig.DefaultConfig()
// The SDK's default minimum gas price is set to "" (empty value) inside
// app.toml. If left empty by validators, the node will halt on startup.
// However, the chain developer can set a default app.toml value for their
// validators here.
//
// In summary:
// - if you leave srvCfg.MinGasPrices = "", all validators MUST tweak
// their own app.toml config,
// - if you set srvCfg.MinGasPrices non-empty, validators CAN tweak their
// own app.toml to override, or use this default value.
cfg.MinGasPrices = "0umars"
return template, cfg
}