Skip to content

Commit

Permalink
remove uneccessary consensus params migration
Browse files Browse the repository at this point in the history
  • Loading branch information
dimiandre committed Jul 7, 2024
1 parent e055089 commit a40e23b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/upgrades/v23/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

icqtypes "github.com/cosmos/ibc-apps/modules/async-icq/v7/types"

"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
Expand Down Expand Up @@ -65,11 +64,6 @@ func CreateV23UpgradeHandler(
}
}

// Migrate Tendermint consensus parameters from x/params module to a deprecated x/consensus module.
// The old params module is required to still be imported in your app.go in order to handle this migration.
baseAppLegacySS := keepers.ParamsKeeper.Subspace(baseapp.Paramspace).WithKeyTable(paramstypes.ConsensusParamsKeyTable())
baseapp.MigrateParams(ctx, baseAppLegacySS, &keepers.ConsensusParamsKeeper)

// Run migrations
logger.Info(fmt.Sprintf("pre migrate version map: %v", vm))
versionMap, err := mm.RunMigrations(ctx, cfg, vm)
Expand Down

0 comments on commit a40e23b

Please sign in to comment.