Skip to content

Commit a228403

Browse files
committed
Add upgrade handler for 1.5.1
1 parent d36da75 commit a228403

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

app/app.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,14 @@ func New(
707707
},
708708
)
709709

710+
app.UpgradeKeeper.SetUpgradeHandler(
711+
"v1.5.1",
712+
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
713+
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
714+
715+
},
716+
)
717+
710718
return app
711719
}
712720

x/dclauth/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
165165
}
166166

167167
// ConsensusVersion implements ConsensusVersion.
168-
func (AppModule) ConsensusVersion() uint64 { return 3 }
168+
func (AppModule) ConsensusVersion() uint64 { return 2 }
169169

170170
// BeginBlock executes all ABCI BeginBlock logic respective to the dclauth module.
171171
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}

x/model/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
146146
}
147147

148148
// ConsensusVersion implements ConsensusVersion.
149-
func (AppModule) ConsensusVersion() uint64 { return 4 }
149+
func (AppModule) ConsensusVersion() uint64 { return 3 }
150150

151151
// BeginBlock executes all ABCI BeginBlock logic respective to the capability module.
152152
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}

x/pki/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
148148
}
149149

150150
// ConsensusVersion implements ConsensusVersion.
151-
func (AppModule) ConsensusVersion() uint64 { return 5 }
151+
func (AppModule) ConsensusVersion() uint64 { return 4 }
152152

153153
// BeginBlock executes all ABCI BeginBlock logic respective to the pki module.
154154
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}

0 commit comments

Comments
 (0)