Skip to content

Commit

Permalink
Merge pull request #60 from sei-protocol/yzang/SEI-6789
Browse files Browse the repository at this point in the history
Fix metadata file path for upgrade
  • Loading branch information
yzang2019 authored Mar 5, 2024
2 parents ac4015d + 53986bb commit e4f3ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc/memiavl/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ func isSnapshotName(name string) bool {
// it's needed for upgrade module to check store upgrades,
// it returns 0 if db doesn't exist or is empty.
func GetLatestVersion(dir string) (int64, error) {
metadata, err := readMetadata(dir)
metadata, err := readMetadata(currentPath(dir))
if err != nil {
if os.IsNotExist(err) {
return 0, nil
Expand Down

0 comments on commit e4f3ec3

Please sign in to comment.