Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(services/chain): prevent overriding minimum-gas-prices with default value #3470

Merged
merged 5 commits into from
Apr 13, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ignite/services/chain/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,19 @@ func (c Chain) appTOML(homePath string, cfg *chainconfig.Config) error {
appConfig.Set("api.enabled-unsafe-cors", true)
appConfig.Set("rpc.cors_allowed_origins", []string{"*"})

// Update config values with the validator's Cosmos SDK app config
updateTomlTreeValues(appConfig, validator.App)

// Make sure the API address have the protocol prefix
appConfig.Set("api.address", apiAddr)

staked, err := sdktypes.ParseCoinNormalized(validator.Bonded)
if err != nil {
return err
}
gas := sdktypes.NewInt64Coin(staked.Denom, 0)
appConfig.Set("minimum-gas-prices", gas.String())

// Update config values with the validator's Cosmos SDK app config
updateTomlTreeValues(appConfig, validator.App)

// Make sure the API address have the protocol prefix
appConfig.Set("api.address", apiAddr)

file, err := os.OpenFile(path, os.O_RDWR|os.O_TRUNC, 0o644)
if err != nil {
return err
Expand Down