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

Add missing Tendermint client state checks #172

Merged
merged 12 commits into from
Oct 14, 2022

Conversation

hu55a1n1
Copy link
Contributor

@hu55a1n1 hu55a1n1 commented Oct 12, 2022

Closes: #22

Acceptance Criteria (copied from #22)

Incomplete implementation of check_header_and_update_state


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests.
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

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

@hu55a1n1 hu55a1n1 force-pushed the hu55a1n1/22-complete-tm-client-state-checks branch from 12ec9c9 to 8bf8a74 Compare October 12, 2022 13:01
@hu55a1n1 hu55a1n1 requested a review from plafer October 12, 2022 13:16
@hu55a1n1 hu55a1n1 marked this pull request as ready for review October 12, 2022 13:16
));
}

let _ = TendermintTrustThreshold::new(trust_level.numerator(), trust_level.denominator())
Copy link
Contributor

Choose a reason for hiding this comment

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

Note there is currently a tiny bug in tendermint-rs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@hu55a1n1 hu55a1n1 Oct 14, 2022

Choose a reason for hiding this comment

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

Linking the spec issue -> cosmos/ibc#857

crates/ibc/src/clients/ics07_tendermint/client_state.rs Outdated Show resolved Hide resolved
livelybug added a commit to octopus-network/ibc-rs that referenced this pull request Oct 14, 2022
Copy link
Contributor

@plafer plafer left a comment

Choose a reason for hiding this comment

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

Great stuff 💯

@hu55a1n1 hu55a1n1 merged commit ef81c16 into main Oct 14, 2022
@hu55a1n1 hu55a1n1 deleted the hu55a1n1/22-complete-tm-client-state-checks branch October 14, 2022 13:35
shuoer86 pushed a commit to shuoer86/ibc-rs that referenced this pull request Nov 4, 2023
Bumps [source-map-support](https://github.com/evanw/node-source-map-support) from 0.5.16 to 0.5.21.
- [Release notes](https://github.com/evanw/node-source-map-support/releases)
- [Commits](evanw/node-source-map-support@v0.5.16...v0.5.21)

---
updated-dependencies:
- dependency-name: source-map-support
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Farhad-Shabani pushed a commit that referenced this pull request Sep 9, 2024
* Add missing validation checks for 07-client-state

* Reuse ClientState::new() for validation in TryFrom<RawClientState>

* Polish error handling

* Make ClientState fields private

* Fix tests

* Add more tests

* Add changelog entry

* Polish tests

* Update changelog entry

* Add `frozen_height` param to `ClientState::new()`

* Update changelog entry
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.

Incomplete ICS 007 ClientState verification methods implementation
2 participants