Skip to content

Commit

Permalink
dirty patch for rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Apr 5, 2023
1 parent fb5256e commit aaee16f
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 @@ -108,7 +108,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 &Store{tree: &immutableTree{&iavl.ImmutableTree{}}}, 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 &Store{tree: &immutableTree{&iavl.ImmutableTree{}}}, nil
}

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

0 comments on commit aaee16f

Please sign in to comment.