Skip to content

Update MsgUpdateClient handlers to accept misbehaviour reports via its client_message field #1075

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

Merged
merged 13 commits into from
Feb 6, 2024

Conversation

seanchen1991
Copy link
Contributor

Closes: #835

Description


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).

Copy link

codecov bot commented Feb 5, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (caee889) 66.71% compared to head (3f9895e) 66.67%.

❗ Current head 3f9895e differs from pull request most recent head 4769bd7. Consider uploading reports for the commit 4769bd7 to get more accurate results

Files Patch % Lines
ibc-clients/ics07-tendermint/src/client_state.rs 75.00% 2 Missing ⚠️
...stkit/src/testapp/ibc/clients/mock/client_state.rs 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1075      +/-   ##
==========================================
- Coverage   66.71%   66.67%   -0.04%     
==========================================
  Files         204      204              
  Lines       20447    20436      -11     
==========================================
- Hits        13641    13626      -15     
- Misses       6806     6810       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Farhad-Shabani Farhad-Shabani left a comment

Choose a reason for hiding this comment

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

Thank you @seanchen1991 for taking care of this.

  • There are a few tests still only use MsgSubmitMibehavour . Since we're planning to deprecate this type, we are going to switch those over to MsgUpdateClient later. right?

  • Also, please add a unclog and update the PR’s title, then all set.

@seanchen1991 seanchen1991 changed the title Deprecate MsgSubmitMisbehaviour in favor of MsgUpddateClient Update MsgUpdateClient handlers to accept misbehaviour reports via its client_message field Feb 5, 2024
@seanchen1991 seanchen1991 merged commit 0a275ff into main Feb 6, 2024
@seanchen1991 seanchen1991 deleted the sean/client-update-misbehaviour branch February 6, 2024 16:36
@Farhad-Shabani Farhad-Shabani added this to the 0.51.0 milestone Feb 6, 2024
Farhad-Shabani pushed a commit that referenced this pull request Sep 9, 2024
…its `client_message` field (#1075)

* Check MsgUpdateClient::client_message by matching against type_url

* Update ibc testkit mock

* Remove leading underscores

* Remove code comments

* Clean up compilation issues from ibc testkit

* Fix ambiguous import issue

* Add passing tests

* Add deprecation attribute to `MsgSubmitMisbehaviour` type

* Remove deprecated attribute from MsgSubmitMisbehaviour

* Remove std::dbg call
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.

[ICS02] Modify MsgUpdateClient handler to also handle misbehaviour due to ibc-proto-rs v0.34.0 updates
2 participants