Skip to content

Commit

Permalink
chore(simdv2): allow overriding the --home flag (#22348)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-rushakoff authored Oct 23, 2024
1 parent 762fad2 commit 864ae34
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 @@ -37,7 +37,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 @@ -165,7 +165,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 864ae34

Please sign in to comment.