-
Notifications
You must be signed in to change notification settings - Fork 88
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: revert frozen_height
to 0 for active clients in conversions
#1064
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1064 +/- ##
==========================================
+ Coverage 67.06% 67.07% +0.01%
==========================================
Files 204 204
Lines 20532 20543 +11
==========================================
+ Hits 13769 13780 +11
Misses 6763 6763 ☔ View full report in Codecov by Sentry. |
Am I correct to conclude that |
I got my answer!
|
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.
One suggestion - otherwise, LGTM ✨
Co-authored-by: Rano | Ranadeep <[email protected]> Signed-off-by: Farhad Shabani <[email protected]>
frozen_height
to 0 for active clients in From<TmClientState>
frozen_height
to 0 for active clients in conversions
…1064) * fix: revert proto encoded frozen_height to height = zero * fix: disallow proto frozen_height equal to None * fix: test_update_synthetic_tendermint_client_duplicate_ok * Update ibc-clients/ics07-tendermint/types/src/error.rs Co-authored-by: Rano | Ranadeep <[email protected]> Signed-off-by: Farhad Shabani <[email protected]> --------- Signed-off-by: Farhad Shabani <[email protected]> Co-authored-by: Rano | Ranadeep <[email protected]>
Description
In #1061, when converting an active Tendermint ClientState to its corresponding proto type, we set the
frozen_height
asNone
to ensure consistency when switching between domain and proto types. However, basecoin-rs revealed that the ibc-go driven chain can only properly decode the Protobuf encoded of an activeClientState
value when thefrozen_height
is explicitly set to zero!Integration test: informalsystems/basecoin-rs#151
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.