From 9aedc0691d039edb6b0d6dad7868e4b14c7a826d Mon Sep 17 00:00:00 2001 From: Dmitriy Khaustov aka xDimon Date: Mon, 14 Oct 2024 11:18:01 +0300 Subject: [PATCH] fix: allowance of participation in dispute Signed-off-by: Dmitriy Khaustov aka xDimon --- .../dispute_coordinator/impl/dispute_coordinator_impl.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/dispute_coordinator/impl/dispute_coordinator_impl.cpp b/core/dispute_coordinator/impl/dispute_coordinator_impl.cpp index 7fafa9277b..f25d4c42ed 100644 --- a/core/dispute_coordinator/impl/dispute_coordinator_impl.cpp +++ b/core/dispute_coordinator/impl/dispute_coordinator_impl.cpp @@ -1463,12 +1463,10 @@ namespace kagome::dispute { // - `is_included` lands in prioritized queue // - `is_confirmed` | `is_backed` lands in the best effort queue // We don't participate in disputes escalated by disabled validators only. - // We don't participate in disputes on finalized candidates. - // see: {polkadot}/node/core/dispute-coordinator/src/initialized.rs:907 + // see: + // https://github.com/paritytech/polkadot-sdk/blob/b16237ad6f019667a59b0e3e726f6ac20e2d0a1c/polkadot/node/core/dispute-coordinator/src/initialized.rs#L1184 - if (own_vote_missing // - and is_disputed and not is_postponed // - and allow_participation) { + if (own_vote_missing and is_disputed and allow_participation) { auto priority = static_cast(is_included); auto &receipt = new_state.votes.candidate_receipt;