Skip to content

Commit

Permalink
fixup! feat(cosmos): support core proposals set by upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Jan 31, 2024
1 parent eb9ad28 commit fa66528
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion golang/cosmos/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -829,13 +829,20 @@ func NewAgoricApp(
func unreleasedUpgradeHandler(app *GaiaApp, targetUpgrade string) func(sdk.Context, upgradetypes.Plan, module.VersionMap) (module.VersionMap, error) {
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVm module.VersionMap) (module.VersionMap, error) {
app.CheckControllerInited(false)

// Each CoreProposalStep runs sequentially, and can be constructed from
// one or more modules executing in parallel within the step.
CoreProposalSteps := []vm.CoreProposalStep{
// vm.CoreProposalStepForModules("@agoric/builders/scripts/vats/init-network.js"),
}

app.upgradeDetails = &upgradeDetails{
// Record the plan to send to SwingSet
Plan: plan,
// Core proposals that should run during the upgrade block
// These will be merged with any coreProposals specified in the
// upgradeInfo field of the upgrade plan ran as subsequent steps
CoreProposals: vm.CoreProposalsFromSteps(),
CoreProposals: vm.CoreProposalsFromSteps(CoreProposalSteps...),
}

// Always run module migrations
Expand Down

0 comments on commit fa66528

Please sign in to comment.