-
Notifications
You must be signed in to change notification settings - Fork 138
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
fix: fixed QueryAllPairsValConAddrByConsumerChainID output formatting #1722
fix: fixed QueryAllPairsValConAddrByConsumerChainID output formatting #1722
Conversation
@mpoke need someone to review this, can you review that or tag somebody please? |
Also, one off-top thing that's not related but that I can fix in this PR, if that's an issue (not sure if it is): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, one off-top thing that's not related but that I can fix in this PR, if that's an issue (not sure if it is):
https://github.com/cosmos/interchain-security/blob/main/proto/interchain_security/ccv/provider/v1/query.proto#L203 here it has 2 keys with yaml:"address", wonder if it may cause any issues or if it's expected?
Yes, it would be nice to have consumer_address
and provider_address
instead of both being address
.
LGTM
@insumity okay, done and also fixed tests, should do the trick as it's now passing on my laptop locally. |
@freak12techno This is a node API breaking change, not a state-machine breaking one. |
@insumity gotcha, I thought whether changing the yaml thing in proto file would result in a breaking change or not, but regardless of the yaml thing it will be API breaking, as it returns data in a different format now, am I correct? |
@freak12techno Yes, as mentioned, this is a node API breaking change. See here:
Your current prefix is fine. Thank you very much for your fix! |
@insumity gotcha. Last question: I see mbt tests failing here, but they seem to also fail in other PRs, can you clarify whether this is ok or should I update something in my PR to make it pass? |
The failure is not due to this PR, fine to merge despite it |
@insumity @p-offtermatt can we get this merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Will merge
@p-offtermatt sorry for pinging again, I think auto merge won't work here as there's a failed CI check which is failing not because of my changes. Can you maybe merge it manually? |
… (backport #1722) (#1795) fix: fixed QueryAllPairsValConAddrByConsumerChainID output formatting (#1722) * fix: fixed QueryAllPairsValConAddrByConsumerChainID output formatting * fix: name PairValConAddrProviderAndConsumer more appropriately * chore: fixed tests (cherry picked from commit b0c0df9) Co-authored-by: Sergey <83376337+freak12techno@users.noreply.github.com>
… (backport #1722) (#1794) fix: fixed QueryAllPairsValConAddrByConsumerChainID output formatting (#1722) * fix: fixed QueryAllPairsValConAddrByConsumerChainID output formatting * fix: name PairValConAddrProviderAndConsumer more appropriately * chore: fixed tests (cherry picked from commit b0c0df9) Co-authored-by: Sergey <83376337+freak12techno@users.noreply.github.com>
Description
Fixes the issue described here: #1251 (comment)
Converts QueryAllPairsValConAddrByConsumerChainID output to consumer addresses, so instead of raw bytes in gRPC/REST response we now have this:
I patched my Gaia node with this: https://api.cosmos.quokkastake.io/interchain_security/ccv/provider/consumer_chain_id?chain_id=neutron-1, seems to work more correct, also tested it with gRPC and it also works.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if the change is state-machine breakingCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
the type prefix if the change is state-machine breaking