Implement persistent reputation database for collator protocol (#7751)#10917
Merged
AlexandruCihodaru merged 190 commits intomasterfrom Feb 13, 2026
Merged
Implement persistent reputation database for collator protocol (#7751)#10917AlexandruCihodaru merged 190 commits intomasterfrom
AlexandruCihodaru merged 190 commits intomasterfrom
Conversation
…variant for the validator side
…rotocol-revamp-peer-manager
…rotocol-revamp-peer-manager
…rotocol-revamp-peer-manager
…rotocol-revamp-peer-manager
…p-peer-manager' into alindima/collator-protocol-revamp-reputation-db-draft
…p-reputation-db-draft' into alindima/collator-protocol-revamp-collation-manager
Contributor
Author
|
/cmd fmt |
Signed-off-by: Alexandru Cihodaru <alexandru.cihodaru@parity.io>
sandreim
approved these changes
Feb 10, 2026
polkadot/node/network/collator-protocol/src/validator_side_experimental/mod.rs
Outdated
Show resolved
Hide resolved
Signed-off-by: Alexandru Cihodaru <alexandru.cihodaru@parity.io>
Contributor
Author
|
/cmd fmt |
Contributor
Contributor
Signed-off-by: Alexandru Cihodaru <alexandru.cihodaru@parity.io>
Signed-off-by: Alexandru Cihodaru <alexandru.cihodaru@parity.io>
tdimitrov
approved these changes
Feb 12, 2026
Contributor
tdimitrov
left a comment
There was a problem hiding this comment.
Good work @AlexandruCihodaru 🚀
alindima
approved these changes
Feb 13, 2026
polkadot/node/network/collator-protocol/src/validator_side_experimental/mod.rs
Show resolved
Hide resolved
polkadot/node/network/collator-protocol/src/validator_side_experimental/mod.rs
Outdated
Show resolved
Hide resolved
Signed-off-by: Alexandru Cihodaru <alexandru.cihodaru@parity.io>
paritytech-release-backport-bot bot
pushed a commit
that referenced
this pull request
Feb 13, 2026
#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)
|
Successfully created backport PR for |
EgorPopelyaev
added a commit
that referenced
this pull request
Feb 16, 2026
Backport #10917 into `stable2603` from AlexandruCihodaru. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Alexandru Cihodaru <alexandru.cihodaru@parity.io> Co-authored-by: Alexandru Cihodaru <40807189+AlexandruCihodaru@users.noreply.github.com> 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> Co-authored-by: Egor_P <egor@parity.io>
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.


Implements persistent storage for the experimental collator protocol's reputation database.
Changes:
PersistentDbwrapper that persists the in-memory reputation DB to diskImplementation:
PersistentDbwraps the existingDband adds persistence on top:Tests:
basic_persistence.rs: Validates persistence across restarts and startup lookbackpruning.rs: Validates automatic cleanup on parachain deregistration