This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Dispute spam protection #4134
Merged
paritytech-processbot
merged 72 commits into
master
from
rk-dispute-coordinator-spam-slots
Nov 19, 2021
Merged
Dispute spam protection #4134
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
726e278
Mostly notes.
eskimor 6cd95b3
Merge branch 'master' into rk-dispute-coordinator-spam-slots
eskimor 435242d
Better error messages.
eskimor 39a2313
Introduce Fatal/NonFatal + drop back channel participation
eskimor 345a4e7
Better error messages.
eskimor 7e308df
Utility function for receiving `CandidateEvent`s.
eskimor f12cd2a
Ordering module typechecks.
eskimor d6aa872
cargo fmt
eskimor 162e307
Prepare spam slots module.
eskimor 3b32fb0
Implement SpamSlots mechanism.
eskimor c9e944e
Implement queues.
eskimor af7c7fb
cargo fmt
eskimor 595c410
Participation.
eskimor 79e9478
Participation taking shape.
eskimor 7452dec
Finish participation.
eskimor 7f001f7
cargo fmt
eskimor 8dbe4fa
Cleanup.
eskimor fdb8565
WIP: Cleanup + Integration.
eskimor 84aad25
Make `RollingSessionWindow` initialized by default.
eskimor 62c34b2
Make approval voting typecheck.
eskimor 71b5f0d
Get rid of lazy_static & fix approval voting tests
eskimor edb8583
Move `SessionWindowSize` to node primitives.
eskimor ec6b52c
Implement dispute coordinator initialization.
eskimor a195007
cargo fmt
eskimor 7558594
Make queues return error instead of boolean.
eskimor ff36198
Initialized: WIP
eskimor 35154b9
Introduce chain api for getting finalized block.
eskimor efd28a9
Fix ordering to only prune candidates on finalized events.
eskimor 41ae78d
Pruning of old sessions in spam slots.
eskimor 0e27f46
New import logic.
eskimor 76a3660
Make everything typecheck.
eskimor aeaaaf3
Fix warnings.
eskimor 9784485
Get rid of obsolete dispute-participation.
eskimor cb82b3b
Fixes.
eskimor ac684e7
Merge branch 'master' into rk-dispute-coordinator-spam-slots
eskimor 463ba02
Add back accidentelly deleted Cargo.lock
eskimor 5bfd5eb
Deliver disputes in an ordered fashion.
eskimor 5f244bc
Add module docs for errors
eskimor d2d15e3
Use type synonym.
eskimor d8cfc71
hidden docs.
eskimor 10a8569
Merge branch 'master' into rk-dispute-coordinator-spam-slots
eskimor f17f3dc
Fix overseer tests.
eskimor 9b4fd1f
Ordering provider taking `CandidateReceipt`.
eskimor efbdd0f
Fix ordering to use relay_parent
eskimor 57e7a4e
Add comment in ordering.rs.
eskimor 59f111d
Take care of duplicate entries in queues.
eskimor 2dd6c50
Better spam slots.
eskimor 7502183
Review remarks + docs.
eskimor cadebab
Fix db tests.
eskimor 165239c
Participation tests.
eskimor 97e8173
Merge remote-tracking branch 'parity/master' into rk-dispute-coordina…
Lldenaurois b96c4a0
Also scrape votes on first leaf for good measure.
eskimor b4046d9
Make tests typecheck.
eskimor 2723ee1
Merge branch 'master' into rk-dispute-coordinator-spam-slots
eskimor 9adcda5
Merge branch 'rk-dispute-coordinator-spam-slots' of github.com:parity…
eskimor 37ef1a0
Spelling.
eskimor 872d575
Only participate in actual disputes, not on every import.
eskimor 3e68bd4
Don't account backing votes to spam slots.
eskimor e3adf27
Fix more tests.
eskimor 3e66471
Don't participate if we don't have keys.
eskimor e428aac
Fix tests, typos and warnings.
eskimor e6192e2
Fix merge error.
eskimor 54e5a27
Spelling fixes.
eskimor e290045
Add missing docs.
eskimor 94f93c3
Queue tests.
eskimor d3a401a
More tests.
eskimor cc2a5f3
Add metrics + don't short circuit import.
eskimor 5190e50
Basic test for ordering provider.
eskimor 5708e84
Import fix.
eskimor d168de1
Merge branch 'master' into rk-dispute-coordinator-spam-slots
eskimor a97ef35
Remove dead link.
eskimor 10506a4
One more dead link.
eskimor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.