Skip to content

[Bug]: Certain calls with x-cosmos-block-height are broken #19822

@evyatar-tres

Description

@evyatar-tres

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

A bug happened!

General
Until recently, across all cosmos blockchains, I was able to query historical rewards using the "x-cosmos-block-height", this was done in correspondence to the RPC's sync_info and earliest_block_height on that specific node

Starting last week (probably related to some versioning upgrade), this does not work anymore

Usecase
RPC URL: https://rpc-us-1.kyve.network/status?
earliest_block: "1"
version: "0.37.2

SDK URL:
https://api-us-1.kyve.network/cosmos/distribution/v1beta1/delegators/kyve13jgzfjfwp2mmfrmegvmulrrmkm4fqectts76uq/rewards

SDK Version: "v0.47.6"

Using headers + error:
code 2
message "codespace sdk code 18: invalid request: failed to load state at height 100000; version mismatch on immutable IAVL tree; version does not exist. Version has either been pruned, or is for a future block height (latest height: 5457144)"
details []

Note, until last week this worked for all block heights

Cosmos SDK Version

"v0.47.6"

How to reproduce?

https://api-us-1.kyve.network/cosmos/distribution/v1beta1/delegators/kyve13jgzfjfwp2mmfrmegvmulrrmkm4fqectts76uq/rewards

with x-cosmos-block-height, using this value: 100000

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions