Skip to content

Commit

Permalink
chore(simdv2): allow overriding the --home flag (backport #22348) (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Oct 23, 2024
1 parent c6b5f4a commit 9179814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simapp/v2/simdv2/cmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
)

func newApp[T transaction.Tx](logger log.Logger, viper *viper.Viper) serverv2.AppI[T] {
viper.Set(serverv2.FlagHome, simapp.DefaultNodeHome)
viper.SetDefault(serverv2.FlagHome, simapp.DefaultNodeHome)
return serverv2.AppI[T](simapp.NewSimApp[T](logger, viper))
}

Expand Down Expand Up @@ -163,7 +163,7 @@ func appExport[T transaction.Tx](

// overwrite the FlagInvCheckPeriod
viper.Set(server.FlagInvCheckPeriod, 1)
viper.Set(serverv2.FlagHome, simapp.DefaultNodeHome)
viper.SetDefault(serverv2.FlagHome, simapp.DefaultNodeHome)

var simApp *simapp.SimApp[T]
if height != -1 {
Expand Down

0 comments on commit 9179814

Please sign in to comment.