-
Notifications
You must be signed in to change notification settings - Fork 92
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
Implement consensus state pruning for Tendermint clients #922
Conversation
…sensus-state-pruning
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #922 +/- ##
=======================================
Coverage ? 67.65%
=======================================
Files ? 130
Lines ? 16415
Branches ? 0
=======================================
Hits ? 11105
Misses ? 5310
Partials ? 0
☔ View full report in Codecov by Sentry. |
crates/ibc/src/clients/ics07_tendermint/client_state/update_client.rs
Outdated
Show resolved
Hide resolved
crates/ibc/src/clients/ics07_tendermint/client_state/update_client.rs
Outdated
Show resolved
Hide resolved
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.
All set from my end. See if the added unit test makes sense to you, we can merge. 🎉
Thanks @seanchen1991 for taking care of this!
* Add prune_oldest_consensus_state to ClientStateValidation * Add consensus_state_heights fn signature to CommonContext * Stub prune_oldest_consensus_state fn * Add comments for delete_update_time and delete_update_height * Clean up code structure a bit * Fix some compilation errors * Address all compilation errors resulting from prune_old_consensus_states * Move delete_update_height and delete_update_time methods to ExecutionContext trait * Clean up all compilation errors * Disambiguate some method calls * Fix fn formatting * Run cargo fmt * Flip consensus state condition check * Add changelog entry * Incorporate PR feedback * test: add test_cons_state_pruning * Simplify consensus state pruning unit test a bit * Document `test_consensus_state_pruning` function * Correct a detail in documentation --------- Co-authored-by: Farhad Shabani <[email protected]>
Closes: #600
Description
Implements consensus state pruning for Tendermint clients.
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.