Skip to content

Commit

Permalink
fix: allowance of participation in dispute
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
  • Loading branch information
xDimon committed Oct 14, 2024
1 parent cfbf404 commit 9aedc06
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/dispute_coordinator/impl/dispute_coordinator_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ParticipationPriority>(is_included);

auto &receipt = new_state.votes.candidate_receipt;
Expand Down

0 comments on commit 9aedc06

Please sign in to comment.