-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Filter votes from disabled validators in BackedCandidates in process_inherent_data
#1863
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
Merged
Merged
Changes from 31 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
259cb4b
Filter backing votes in `paras_inherent` - initial work
tdimitrov d451886
Error handling
tdimitrov a3bafba
Merge branch 'master' into tsv-disabling-runtime
tdimitrov 75d707a
Merge branch 'tsv-disabling' into tsv-disabling-runtime
tdimitrov cb0d8fc
Add `fn disabled_validators` to `trait DisabledValidators`. Use the t…
tdimitrov 8a8893e
Extract the implementation of `disabled_validators` from rutnime api …
tdimitrov 7b868b0
Error handling
tdimitrov a41d21c
Remove `DisabledValidators` from paras_inherent
tdimitrov 34a3bf0
Fix a warning
tdimitrov 88eb018
Merge branch 'tsv-disabling' into tsv-disabling-runtime
tdimitrov 305d5b8
Merge branch 'tsv-disabling' into tsv-disabling-runtime
tdimitrov e241312
Add setters used for unit tests
tdimitrov 2aa1323
Mock for `DisabledValidators` in Test runtime
tdimitrov a8efd15
Fix test state and add an optimisation for `filter_backed_statements`
tdimitrov 3567a93
Make disabled validators mock mutable
tdimitrov 04dc32a
Extract common code in `get_test_data`
tdimitrov cce71ee
Additional cases
tdimitrov 7a19f55
Fixes in `filter_backed_statements`
tdimitrov 3260187
Refactor `filter_backed_statements`
tdimitrov ff577a5
Merge branch 'tsv-disabling' into tsv-disabling-runtime
ordian 876655d
Apply suggestions from code review
tdimitrov ed2d430
wip: Filtering backed statements from disabled validators is performe…
tdimitrov 9a8985a
para_id_to_core_idx -> scheduled
tdimitrov f7544d7
Fix code duplication in tests
tdimitrov 59fc176
Fix a compilation error
tdimitrov cb2fe60
Fix backing votes filtering - if more than `effective_minimum_backing…
tdimitrov be85b5d
Ensure inherent data contains no backing votes from disabled validato…
tdimitrov f472bb1
Comments and small fixes
tdimitrov 53aaffa
Fix disabled statements filtering
tdimitrov 16823f4
Updated comments
tdimitrov 452b202
Merge branch 'tsv-disabling' into tsv-disabling-runtime
tdimitrov cb60cf0
Apply suggestions from code review
tdimitrov 750f2db
Code review feedback
tdimitrov 7022003
Merge branch 'tsv-disabling' into tsv-disabling-runtime
tdimitrov 8b5e5a8
Apply suggestions from code review: remove duplicated assert
tdimitrov a50800f
Code review feedback - filter_backed_statements_from_disabled -> filt…
tdimitrov 7a308cd
Update parainherent.md with some details about data sanitization
tdimitrov 7ccb942
Add newline to parainherent.md
tdimitrov 1834e20
Apply suggestions from code review
tdimitrov 610b45d
Apply suggestions from code review
tdimitrov 83adc93
Fixes in parainherent.md
tdimitrov 158557d
Merge branch 'tsv-disabling' into tsv-disabling-runtime
tdimitrov 79f4c40
Merge branch 'tsv-disabling' into tsv-disabling-runtime
tdimitrov 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
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.