Skip to content

Commit

Permalink
Merge pull request #997 from lavanet/CNS-v0.30.0
Browse files Browse the repository at this point in the history
CNS-v0.30.0
  • Loading branch information
Yaroms authored Nov 23, 2023
2 parents ba52e88 + 6d776c9 commit be4b904
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ var Upgrades = []upgrades.Upgrade{
upgrades.Upgrade_0_26_1,
upgrades.Upgrade_0_26_2,
upgrades.Upgrade_0_27_0,
upgrades.Upgrade_0_30_0,
}

// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
Expand Down
6 changes: 6 additions & 0 deletions app/upgrades/empty_upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,9 @@ var Upgrade_0_27_0 = Upgrade{
CreateUpgradeHandler: defaultUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{},
}

var Upgrade_0_30_0 = Upgrade{
UpgradeName: "v0.30.0",
CreateUpgradeHandler: defaultUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{},
}
7 changes: 6 additions & 1 deletion x/protocol/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,15 @@ func (am AppModule) RegisterServices(cfg module.Configurator) {
// panic:ok: at start up, migration cannot proceed anyhow
panic(fmt.Errorf("%s: failed to register migration to v10: %w", types.ModuleName, err))
}

if err := cfg.RegisterMigration(types.ModuleName, 10, migrator.MigrateVersion); err != nil {
// panic:ok: at start up, migration cannot proceed anyhow
panic(fmt.Errorf("%s: failed to register migration to v11: %w", types.ModuleName, err))
}
}

// ConsensusVersion implements ConsensusVersion.
func (AppModule) ConsensusVersion() uint64 { return 10 }
func (AppModule) ConsensusVersion() uint64 { return 11 }

// RegisterInvariants registers the capability module's invariants.
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}
Expand Down
4 changes: 2 additions & 2 deletions x/protocol/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
var _ paramtypes.ParamSet = (*Params)(nil)

const (
TARGET_VERSION = "0.27.3"
MIN_VERSION = "0.27.0"
TARGET_VERSION = "0.30.0"
MIN_VERSION = "0.27.1"
)

var (
Expand Down

0 comments on commit be4b904

Please sign in to comment.