From 9aa45bf9e41544256064d97fe8f76e46d02e757b Mon Sep 17 00:00:00 2001 From: pharr117 Date: Sat, 17 Aug 2024 14:55:53 -0400 Subject: [PATCH] Apply IAVL store patch to prevent errors on version missing --- store/iavl/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/iavl/store.go b/store/iavl/store.go index 7ccea9007767..9fa9c0ab7433 100644 --- a/store/iavl/store.go +++ b/store/iavl/store.go @@ -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)