Skip to content

Commit

Permalink
fix: add custom setting of proxy in app.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
zemyblue committed Oct 5, 2023
1 parent 247b86d commit 170be6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/fnsad-proxy/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ func InitTestnet(
nodeIDs := make([]string, numValidators)
valPubKeys := make([]cryptotypes.PubKey, numValidators)

appConfig := srvconfig.DefaultConfig()
customAppTemplate, config := initAppConfig()
appConfig := config.(*CustomAppConfig)
appConfig.MinGasPrices = minGasPrices
appConfig.API.Enable = true
appConfig.Telemetry.Enabled = true
Expand Down Expand Up @@ -246,6 +247,7 @@ func InitTestnet(
return err
}

srvconfig.SetConfigTemplate(customAppTemplate)
srvconfig.WriteConfigFile(filepath.Join(nodeDir, "config/app.toml"), appConfig)
}

Expand Down

0 comments on commit 170be6b

Please sign in to comment.