-
Notifications
You must be signed in to change notification settings - Fork 329
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
Fetch consensus state heights using QueryConsensusStateHeights
#2950
Conversation
7086902
to
06fc7b8
Compare
Looks like the Osmosis integration test is failing with:
Will see if I can test with a newer version of Osmosis |
The wasmd version we are testing against apparently does not support this query:
Will see if I can update it as well, and perhaps add a fallback to the full query. |
… query instead of `QueryConsensusStates`
…hts is unsupported
Looks like specifying |
… as this results in a empty response
d3b6151
to
244cbd5
Compare
I can reproduce this using Query consensus state heights with default parameters
Query consensus state heights in reverse (lexicographic) order
Query consensus state heights in default order with a limit of
|
This reverts commit e4b75fc.
* `query consensus state`: only list heights and remove `--heights-only` option * Remove `query_consensus_states` from the `ChainEndpoint` trait * Add changelog entry * Cleanup docs and templates * Update integration test to use internal helper
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.
great work! thanks @romac
Closes: #2001
Description
Fetch consensus state heights using the more efficient
QueryConsensusStateHeights
gRPC query instead of fetching all the consensus states themselves usingQueryConsensusStates
and extracting the heights from the result.TODO
TODO
s in the code)QueryConsensusStateHeights
is unsupported, and fallback onQueryConsensusStates
?Note
This request is available in the following IBC-Go versions:
>=
v3.1.0>=
v2.3.0>=
v1.5.0PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.