Skip to content

Commit

Permalink
iavl store patch return nil error
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Aug 16, 2024
1 parent 0ab571b commit 50db303
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 50db303

Please sign in to comment.