Skip to content

Commit

Permalink
relax version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jan 26, 2024
1 parent 772b8aa commit 8b40a2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,9 @@ func New(
if qms != nil {
v1 := qms.LatestVersion()
v2 := app.LastBlockHeight()
if v1 > 0 && v1 != v2 {
tmos.Exit(fmt.Sprintf("versiondb lastest version %d don't match iavl latest version %d", v1, v2))
if v1 > 0 && v1 < v2 {
// try to prevent gap being created in versiondb
tmos.Exit(fmt.Sprintf("versiondb version %d lag behind iavl version %d", v1, v2))
}
}
}
Expand Down

0 comments on commit 8b40a2c

Please sign in to comment.