-
Notifications
You must be signed in to change notification settings - Fork 15
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
chore: Prune historical values in Validator pallet #5292
chore: Prune historical values in Validator pallet #5292
Conversation
This includes: - Implemented for AuthorityIndex, HistoricalAuthorities, HistoricalBonds - Deleting values on epoch expiry - Migration for deleting values for *all* previously expired epochs - Tests for migration and epoch expiry
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5292 +/- ##
=====================================
- Coverage 70% 70% -0%
=====================================
Files 487 488 +1
Lines 87426 87442 +16
Branches 87426 87442 +16
=====================================
- Hits 61505 61431 -74
- Misses 22642 22725 +83
- Partials 3279 3286 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
This looks correct, however may require some re-discussion about whether it's desirable or not...
* origin/main: feat: broker can encode btc smart contract call (#5329) chore: localnet recreate script can use defaults (#5338) feat: witnessing btc smart contract swaps (#5331) feat: Solana CCM fallback (#5316) fix: scale types for pending ceremonies (#5286) chore: Prune historical values in Validator pallet (#5292) feat: expose deposit transaction hash from ingress-egress-tracker (#5320) # Conflicts: # Cargo.lock # engine/src/witness/btc/smart_contract.rs
* Add first attempt at pruning. This includes: - Implemented for AuthorityIndex, HistoricalAuthorities, HistoricalBonds - Deleting values on epoch expiry - Migration for deleting values for *all* previously expired epochs - Tests for migration and epoch expiry * Remove comments (noted in review).
* Add first attempt at pruning. This includes: - Implemented for AuthorityIndex, HistoricalAuthorities, HistoricalBonds - Deleting values on epoch expiry - Migration for deleting values for *all* previously expired epochs - Tests for migration and epoch expiry * Remove comments (noted in review).
Pull Request
Closes: PRO-1318
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
Currently some epoch-indexed storage values are not deleted when their epoch is expiring. This PR adds logic to delete these storage values.
This includes:
expire_epoch
Non-Breaking changes
If this PR includes non-breaking changes, select the
non-breaking
label. On merge, CI will automatically cherry-pick the commit to a PR against the release branch.