[stable2603] Backport #10917#11067
Merged
EgorPopelyaev merged 4 commits intostable2603from Feb 16, 2026
Merged
Conversation
#10917) Implements persistent storage for the experimental collator protocol's reputation database. Changes: - Adds `PersistentDb` wrapper that persists the in-memory reputation DB to disk - Periodic persistence every 10 minutes (30s in test mode) - Immediate persistence on slashes and parachain deregistration - Loads existing state on startup with lookback for missed blocks Implementation: `PersistentDb` wraps the existing `Db` and adds persistence on top: - All reputation logic (scoring, decay, LRU) stays in `Db` - Persistence layer handles disk I/O and serialization - Per-para data stored in parachains_db Tests: - `basic_persistence.rs`: Validates persistence across restarts and startup lookback - `pruning.rs`: Validates automatic cleanup on parachain deregistration --------- Signed-off-by: Alexandru Cihodaru <alexandru.cihodaru@parity.io> Co-authored-by: alindima <alin@parity.io> Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> Co-authored-by: Serban Iorga <serban@parity.io> Co-authored-by: Serban Iorga <serban300@gmail.com> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> (cherry picked from commit 744acf5)
Contributor
|
This pull request is amending an existing release. Please proceed with extreme caution,
Emergency Bypass
If you really need to bypass this check: add |
tdimitrov
approved these changes
Feb 13, 2026
AlexandruCihodaru
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport #10917 into
stable2603from AlexandruCihodaru.See the documentation on how to use this bot.