Skip to content

[stable2603] Backport #10917#11067

Merged
EgorPopelyaev merged 4 commits intostable2603from
backport-10917-to-stable2603
Feb 16, 2026
Merged

[stable2603] Backport #10917#11067
EgorPopelyaev merged 4 commits intostable2603from
backport-10917-to-stable2603

Conversation

@paritytech-release-backport-bot
Copy link
Copy Markdown

Backport #10917 into stable2603 from AlexandruCihodaru.

See the documentation on how to use this bot.

#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)
@github-actions
Copy link
Copy Markdown
Contributor

This pull request is amending an existing release. Please proceed with extreme caution,
as to not impact downstream teams that rely on the stability of it. Some things to consider:

  • Backports are only for 'patch' or 'minor' changes. No 'major' or other breaking change.
  • Should be a legit fix for some bug, not adding tons of new features.
  • Must either be already audited or not need an audit.
Emergency Bypass

If you really need to bypass this check: add validate: false to each crate
in the Prdoc where a breaking change is introduced. This will release a new major
version of that crate and all its reverse dependencies and basically break the release.

@EgorPopelyaev EgorPopelyaev enabled auto-merge (squash) February 16, 2026 09:00
@EgorPopelyaev EgorPopelyaev merged commit 343a04d into stable2603 Feb 16, 2026
243 of 245 checks passed
@EgorPopelyaev EgorPopelyaev deleted the backport-10917-to-stable2603 branch February 16, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A3-backport Pull request is already reviewed well in another branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants