Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Validator signing infos with empty addresses #17756

Closed
1 task done
livthomas opened this issue Sep 15, 2023 · 4 comments
Closed
1 task done

[Bug]: Validator signing infos with empty addresses #17756

livthomas opened this issue Sep 15, 2023 · 4 comments
Labels

Comments

@livthomas
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

When fetching validator signing infos either via RPC or REST API, some records contain an empty address. Because of this issue, it is not possible to map these records to specific validators. It is probably a serialization problem with some addresses because returned records contain other data such as missed blocks counter.

{
  "info": [
    {
      "address": "",
      "start_height": "0",
      "index_offset": "20124324",
      "jailed_until": "1970-01-01T00:00:00Z",
      "tombstoned": false,
      "missed_blocks_counter": "0"
    },
    {
      "address": "",
      "start_height": "0",
      "index_offset": "20409039",
      "jailed_until": "1970-01-01T00:00:00Z",
      "tombstoned": false,
      "missed_blocks_counter": "16"
    },
    {
      "address": "",
      "start_height": "0",
      "index_offset": "558390",
      "jailed_until": "1970-01-01T00:00:00Z",
      "tombstoned": false,
      "missed_blocks_counter": "0"
    },
    {
      "address": "",
      "start_height": "0",
      "index_offset": "692329",
      "jailed_until": "1970-01-01T00:00:00Z",
      "tombstoned": false,
      "missed_blocks_counter": "0"
    },
    {
      "address": "cosmosvalcons1qzgr0sk82ce080u78xs3cr5pat9jvtv7k85ajv",
      "start_height": "10199254",
      "index_offset": "6811705",
      "jailed_until": "1970-01-01T00:00:00Z",
      "tombstoned": false,
      "missed_blocks_counter": "1"
    },

Cosmos SDK Version

v0.45.16

How to reproduce?

  1. Go to https://v1.cosmos.network/rpc/v0.45.1
  2. Set rest.cosmos.directory/cosmoshub as the Base URL
  3. Try to call GET /cosmos/slashing/v1beta1/signing_infos
  4. See records with empty addresses in the response

Alternatively, you can reproduce it by running a simple script that I created when I reported the same issue in cosmos/cosmjs#1436.

@julienrbrt
Copy link
Member

Hi,

v0.45.x is not supported. The Cosmos Hub uses a deprecated version.
Can you reproduce in v0.46.x+? If not, we will need to close this as won't fix.
I have quickly checked a few chains (e.g https://juno-rest.publicnode.com/cosmos/slashing/v1beta1/signing_infos / https://kava-rest.publicnode.com/cosmos/slashing/v1beta1/signing_infos), without being able to see the same behavior.

@livthomas
Copy link
Author

I'm not able to reproduce it on any other chain either.

@julienrbrt
Copy link
Member

Alright, feel free to open an issue on https://github.com/cosmos/gaia then 👍🏾

@julienrbrt julienrbrt closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2023
@livthomas
Copy link
Author

@julienrbrt Thanks for the suggestion. I can see it has already been reported there. cosmos/gaia#1734

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants