mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 08:27:55 +00:00
Dispute Coordinator: Batch queries (#3459)
* disputes: Allow batch queries in dispute-coordinator This commit moves to batch queries when responding to QueryCandidateVotes messages. This simplifies the code in the provisioner and dispute-coordinator by no longer requiring to make use of a FuturesOrdered when awaiting multiple quries. Instead, the provisioner need only request the batch itself. * node/approval-voting: Address Feedback to fail on query element missing. * Address feedback * Fix implementer's guide
This commit is contained in:
@@ -129,7 +129,7 @@ Do nothing.
|
||||
according to the `SessionInfo` of the dispute candidate's session, the
|
||||
`DisputeStatus` should be set to `ConcludedPositive(now)` unless it was
|
||||
already `ConcludedNegative`.
|
||||
13. If the dispute now has supermajority votes in the "invalid" direction,
|
||||
13. If the dispute now has supermajority votes in the "invalid" direction,
|
||||
the `DisputeStatus` should be set to `ConcludedNegative(now)`. If it
|
||||
was `ConcludedPositive` before, the timestamp `now` should be copied
|
||||
from the previous status. It will be pruned after some time and all chains
|
||||
@@ -143,7 +143,8 @@ Do nothing.
|
||||
|
||||
### On `DisputeCoordinatorMessage::QueryCandidateVotes`
|
||||
|
||||
* Load `"candidate-votes"` and return the data within or `None` if missing.
|
||||
* Load `"candidate-votes"` for every `(SessionIndex, CandidateHash)` in the query and return data within each `CandidateVote`.
|
||||
If a particular `candidate-vote` is missing, that particular request is ommitted from the response.
|
||||
|
||||
### On `DisputeCoordinatorMessage::IssueLocalStatement`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user