-
Notifications
You must be signed in to change notification settings - Fork 157
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
Feature requires: We need a query which can return all rotated validator keys by consumer chain_id
#1251
Comments
Can I handle this issue? @mpoke |
Thanks @ThanhNhann. I assigned you. Ping if you need help. |
HI @liangping and @mpoke, I want to clarify that the goal of this issue is to have a list of pairs |
@ThanhNhann this is what I am expected. but a list of key pairs is ok to me {
"<old_key>": "<new_key>",
"cosmosvalcons1rtst6se0nfgjy362v33jt5d05crgdyhfvvvvay" : "cosmosvalcons1dt6ezae48ll23atl940m6xkzs6vz0falch5k9r",
"cosmosvalcons1rtst6se0nfgjy362v33jt5d05crgdyhfvvvvay" : "cosmosvalcons1dt6ezae48ll23atl940m6xkzs6vz0falch5k9r",
} |
thank @liangping for the fast reply |
I just made a pr for this issue, can you take a look to check it? @liangping |
@ThanhNhann I just got a new idea! We need a api like this: /cosmos/staking/v1beta1/validators it returns a full validator list with validator's rotated key on the consumer chain. Currently consumer chain does not provide validators api since there's no staking module, so it would be better to have this instead of the list of key pair. but you can keep the key pair list. |
Hi, just wondering if that's expected: on my node, the REST endpoint returns some binary data instead of Also, querying it via CLI doesn't work:
UPD: apparently this patch in
I patched it on my node (see link above), and it seems to return consensus addresses now. @mpoke I can make a PR on that, do you mind? |
Hello,
This query can return a single rotated key with a given address. this is not efficient that we have to query the each by each on front-end.
https://github.com/cosmos/interchain-security/blob/d137d39f01a2e2c85f90e7ea0bc0d1738affb4b1/x/ccv/provider/types/query.pb.go#L425C6-L425C39
For example:
Would be great, if we can just use
chain_id=stride-1
and return something like this:The text was updated successfully, but these errors were encountered: