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

Introduce HeightQuery to be used in queries #2299

Merged
merged 19 commits into from
Jun 17, 2022
Merged

Conversation

plafer
Copy link
Contributor

@plafer plafer commented Jun 14, 2022

Closes: #2313

Description


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@plafer plafer changed the title Change many queries to use HeightQuery Remove the concept of Height::zero Jun 14, 2022
@plafer plafer changed the title Remove the concept of Height::zero Introduce HeightQuery to be used in queries Jun 16, 2022
@plafer
Copy link
Contributor Author

plafer commented Jun 16, 2022

Reduced the scope of the PR in an effort to reduce the size of PRs, limiting it to using the new HeightQuery in all requests.

Will be ready for review soon after #2304 is merged.

@plafer plafer marked this pull request as ready for review June 17, 2022 16:04
Copy link
Contributor

@seanchen1991 seanchen1991 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@plafer plafer merged commit 194a171 into master Jun 17, 2022
@plafer plafer deleted the plafer/1009-height-zero branch June 17, 2022 16:44
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
* Change many queries to use HeightQuery

* use appropriate query height in upgrade

* changelog

* use application height in build_update_client

* don't wait for target height

* better error message

* Update relayer/src/foreign_client.rs

Co-authored-by: Adi Seredinschi <adi@informal.systems>

* docstrings and var name change

* use ibc::Height::decrement

* add warning

* query_latest_height call once

* Remove Eq/PartialEq from request structs

* height -> upgrade_height

* HeightQuery in QueryHostConsensusStateRequest

* Height -> TmHeight

Co-authored-by: Anca Zamfir <zamfiranca@gmail.com>
Co-authored-by: Adi Seredinschi <adi@informal.systems>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce HeightQuery to be used in queries
3 participants