Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[Testing PR] Testing batch dispute import + vote prioritisation #6010

Closed
wants to merge 66 commits into from

Conversation

tdimitrov
Copy link
Contributor

This PR is #5894 and #5567 together. It's for testing purposes, please don't merge.

eskimor and others added 30 commits August 16, 2022 12:52
- [ ] Rate limiting
- [ ] Batching
The new signature of the message is:
```
RecentDisputes(oneshot::Sender<Vec<(SessionIndex, CandidateHash, DisputeStatus)>>),
```

As part of the change also add `DispiteStatus` to
`polkadot_node_primitives`.
* Move disputes to separate module
* Vote prioritisation
* Duplicates handling
* Double vote handling
* Unit tests
* Logs and metrics
* Code review feedback
* Fix ACTIVE/INACTIVE separation and update partition names
* Add `fn dispute_is_inactive` to node primitives and refactor `fn get_active_with_status()` logic
* Keep the 'old' logic if the staging api is not enabled
* Fix some comments in tests
* Add warning message if there are any inactive_unknown_onchain disputes
* Add file headers and remove `use super::*;` usage outside tests
* Adding doc comments
* Fix test methods names
@paritytech-ci paritytech-ci requested review from a team September 14, 2022 11:27
@tdimitrov tdimitrov closed this Sep 15, 2022
@tdimitrov tdimitrov deleted the mishmash branch September 15, 2022 13:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants