Skip to content

Commit

Permalink
feat: only update the app version when
Browse files Browse the repository at this point in the history
  • Loading branch information
cmwaters committed Nov 20, 2023
1 parent 18e768c commit dbc75a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ func (app *BaseApp) SetOption(req abci.RequestSetOption) (res abci.ResponseSetOp
// Info implements the ABCI interface.
func (app *BaseApp) Info(req abci.RequestInfo) abci.ResponseInfo {
lastCommitID := app.cms.LastCommitID()
// load the app version for a non zero height
if lastCommitID.Version > 0 {
// load the app version for a non zero height and zero app hash
if lastCommitID.Version > 0 && app.appVersion == 0 {
ctx, err := app.createQueryContext(lastCommitID.Version, false)
if err != nil {
panic(err)
Expand Down

0 comments on commit dbc75a4

Please sign in to comment.