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

Fix ClientConsensusState query #31

Merged
merged 1 commit into from
Mar 17, 2020
Merged

Conversation

romac
Copy link
Member

@romac romac commented Mar 17, 2020

Closes: #30

Description

Query of client consensus now distinguishes between query height
and consensus height.

Specifically:

  • chain_height is the height at which the query is made
    (can be 0 if the latest state on chain is queried).

  • consensus_height is the consensus height of the client running on this chain
    but it represents a height of the client's chain and should be used to
    construct the query path.


For contributor use:

  • Wrote tests
  • Updated CHANGELOG_PENDING.md
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments
  • Re-reviewed Files changed in the Github PR explorer

Query of client consensus now distinguishes between query height
and consensus height.

Specifically:

- `chain_height` is the height at which the query is made
  (can be 0 if the latest state on chain is queried).

- `consensus_height` is the consensus height of the client running on this chain
  but it represents a height of the client's chain and should be used to
  construct the query path.
@romac romac requested a review from ancazamfir March 17, 2020 11:06
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@c67f1fc). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             master     #31   +/-   ##
========================================
  Coverage          ?   17.7%           
========================================
  Files             ?      26           
  Lines             ?     428           
  Branches          ?      36           
========================================
  Hits              ?      76           
  Misses            ?     325           
  Partials          ?      27           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c67f1fc...90104a3. Read the comment docs.

Copy link
Collaborator

@ancazamfir ancazamfir left a comment

Choose a reason for hiding this comment

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

great!!

@romac romac merged commit e39e84d into master Mar 17, 2020
@romac romac deleted the romac/fix-query-client-consensus branch March 17, 2020 12:48
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
Closes: informalsystems#30

Query of client consensus now distinguishes between query height
and consensus height.

Specifically:

- `chain_height` is the height at which the query is made
  (can be 0 if the latest state on chain is queried).

- `consensus_height` is the consensus height of the client running on this chain
  but it represents a height of the client's chain and should be used to
  construct the query path.
ljoss17 pushed a commit that referenced this pull request Nov 26, 2024
* for tx batching

* remove send_tx

* refactoring

* fix error handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants