Skip to content

Commit

Permalink
Set HaltHeight and HaltTime in base application from config/CLI options.
Browse files Browse the repository at this point in the history
Replace use of literal "pruning" with same-valued constant flagPruning as used elsewhere in the file.
  • Loading branch information
svenski123 committed Jun 10, 2023
1 parent 8e9f922 commit c99564d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/heimdalld/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ func getNewApp(serverCtx *server.Context) func(logger log.Logger, db dbm.DB, sto
helper.InitHeimdallConfig("")
helper.UpdateTendermintConfig(serverCtx.Config, viper.GetViper())
// create new heimdall app
hApp = app.NewHeimdallApp(logger, db, baseapp.SetPruning(store.NewPruningOptionsFromString(viper.GetString("pruning"))))
hApp = app.NewHeimdallApp(logger, db,
baseapp.SetPruning(store.NewPruningOptionsFromString(viper.GetString(flagPruning))),
baseapp.SetHaltHeight(viper.GetUint64(FlagHaltHeight)),
baseapp.SetHaltTime(viper.GetUint64(FlagHaltTime)))

return hApp
}
Expand Down

0 comments on commit c99564d

Please sign in to comment.