Closed
Description
openedon Jan 14, 2023
Summary of Bug
RPC requests to nodes when a node is just getting initialized/started trigger the following error:
"rpc error: code = Unknown desc = codespace sdk code 18: invalid request: failed to load state at height 0; version mismatch on immutable IAVL tree; version does not exist. Version has either been pruned, or is for a future block height (latest height: 0)",
The error is being thrown here when creating the context for the query.
It seems that the IAVL tree does not exist at height 0, so the height hasn't been created yet (here is the VersionExists method on the IAVL struct).
Cosmos SDK version previously returned an empty IAVL tree in this scenario. PR that introduced the change is #13355.
This might be related to this other issue.
Version
v0.47.0-alpha2
Steps to Reproduce
- Create some task/job that call a node RPC endpoint
- Start a new node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment