Skip to content

Commit

Permalink
fix: init app earliest version correctly after state sync (#535)
Browse files Browse the repository at this point in the history
## Describe your changes and provide context
init app earliest version correctly after state sync to avoid app
earliest version < block earliest version
## Testing performed to validate your change

Co-authored-by: blindchaser <[email protected]>
  • Loading branch information
blindchaser and blindchaser authored Aug 19, 2024
1 parent ed1e9a4 commit 0831407
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storev2/rootmulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,10 @@ loop:
if ssImporter != nil {
close(ssImporter)
}
// initialize the earliest version for SS store
if rs.ssStore != nil {
rs.ssStore.SetEarliestVersion(height)
}

return snapshotItem, restoreErr
}
Expand Down

0 comments on commit 0831407

Please sign in to comment.