From a22f7bec39e6bc133b16efd831fafebd54488e0e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 25 May 2022 13:26:56 -0400 Subject: [PATCH] migrate: reorder collection ordering (#8613) (#8616) (cherry picked from commit f33722b4233159a31cdf6c33258fbc601cdbd1d4) Co-authored-by: Sam Kleinman --- cmd/tendermint/commands/key_migrate.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/tendermint/commands/key_migrate.go b/cmd/tendermint/commands/key_migrate.go index ae01eb498..eaff1d99e 100644 --- a/cmd/tendermint/commands/key_migrate.go +++ b/cmd/tendermint/commands/key_migrate.go @@ -19,15 +19,16 @@ func MakeKeyMigrateCommand() *cobra.Command { defer cancel() contexts := []string{ - // this is ordered to put the - // (presumably) biggest/most important - // subsets first. + // this is ordered to put + // the more ephemeral tables first to + // forclose the possiblity of the + // ephemeral data overwriting later data + "tx_index", + "peerstore", + "light", "blockstore", "state", - "peerstore", - "tx_index", "evidence", - "light", } for idx, dbctx := range contexts {