Skip to content

Commit

Permalink
Apply IAVL store patch to prevent errors on version missing
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Aug 17, 2024
1 parent d903043 commit 9aa45bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/iavl/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func UnsafeNewStore(tree *iavl.MutableTree) *Store {
// Any mutable operations executed will result in a panic.
func (st *Store) GetImmutable(version int64) (*Store, error) {
if !st.VersionExists(version) {
return nil, fmt.Errorf("version mismatch on immutable IAVL tree; version does not exist. Version has either been pruned, or is for a future block height")
return nil, nil
}

iTree, err := st.tree.GetImmutable(version)
Expand Down

0 comments on commit 9aa45bf

Please sign in to comment.