Skip to content

Commit

Permalink
Merge pull request #24 from vulcanize/sai/cherry_picks_for_fix_upgrade
Browse files Browse the repository at this point in the history
chore: export the `MakeKeyMigrateCmd` from sdk
  • Loading branch information
i-norden authored Jun 24, 2022
2 parents ce584a4 + 9b1abc7 commit b42f958
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/tm_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ func VersionCmd() *cobra.Command {
}
}

// makeKeyMigrateCmd is ported from tendermint's key-migrate command, but
// MakeKeyMigrateCmd is ported from tendermint's key-migrate command, but
// uses the SDK's own server.Context.
// ref: https://github.com/tendermint/tendermint/blob/master/UPGRADING.md#database-key-format-changes
func makeKeyMigrateCmd() *cobra.Command {
func MakeKeyMigrateCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "key-migrate",
Short: "Run Tendermint database key migration",
Expand Down
2 changes: 1 addition & 1 deletion server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func AddCommands(rootCmd *cobra.Command, defaultNodeHome string, appCreator type
tmcmd.ResetAllCmd,
tmcmd.ResetStateCmd,
tmcmd.InspectCmd,
makeKeyMigrateCmd(),
MakeKeyMigrateCmd(),
)

startCmd := StartCmd(appCreator, defaultNodeHome)
Expand Down

0 comments on commit b42f958

Please sign in to comment.