mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 15:35:42 +00:00
Provisioner should ignore unconfirmed disputes (#6294)
* Fix typos * Filter unconfirmed disputes in provisioner - random_selection * Rework dispute coordinator to return `DisputeStatus` with `ActiveDisputes` message. * Rework the random_selection implementation of `select_disptues` in `provisioner` to return only confirmed disputes. * Filter unconfirmed disputes in provisioner - prioritized_selection * Add test for unconfirmed disputes handling * Fix `dispute-distribution` tests
This commit is contained in:
committed by
GitHub
parent
40221806d4
commit
a0f4287dd9
@@ -430,7 +430,9 @@ async fn get_active_disputes<Context>(
|
||||
|
||||
// Caller scope is in `update_leaves` and this is bounded by fork count.
|
||||
ctx.send_unbounded_message(DisputeCoordinatorMessage::ActiveDisputes(tx));
|
||||
rx.await.map_err(|_| JfyiError::AskActiveDisputesCanceled)
|
||||
rx.await
|
||||
.map_err(|_| JfyiError::AskActiveDisputesCanceled)
|
||||
.map(|disputes| disputes.into_iter().map(|d| (d.0, d.1)).collect())
|
||||
}
|
||||
|
||||
/// Get all locally available dispute votes for a given dispute.
|
||||
|
||||
Reference in New Issue
Block a user