diff --git a/store/iavl/store.go b/store/iavl/store.go index 7bdcb1df9177..33e6a927dfe0 100644 --- a/store/iavl/store.go +++ b/store/iavl/store.go @@ -104,7 +104,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, errors.New("version mismatch on immutable IAVL tree; version does not exist. Version has either been pruned, or is for a future block height") + return &Store{tree: &immutableTree{&iavl.ImmutableTree{}}}, nil } iTree, err := st.tree.GetImmutable(version)