Skip to content

Commit

Permalink
fix: review issue
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 Apr 25, 2024
1 parent 47e4e31 commit a4f7f3f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions core/dispute_coordinator/impl/dispute_coordinator_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2372,31 +2372,6 @@ namespace kagome::dispute {
auto &valid_vote = checked_valid_vote;
auto &invalid_vote = checked_invalid_vote;

// // Check if request from disabled validator
// const auto &relay_parent = candidate_receipt.descriptor.relay_parent;
// OUTCOME_TRY(disabled_validators,
// api_->disabled_validators(relay_parent));
//
// auto is_disabled_validator =
// std::binary_search(disabled_validators.begin(),
// disabled_validators.end(),
// valid_vote.ix)
// or
// std::binary_search(disabled_validators.begin(),
// disabled_validators.end(),
// invalid_vote.ix);

// // Don't exist any votes for candidate - check disabled
// if (votes.valid.empty() and votes.invalid.empty()) {
// auto is_disabled_validator = std::binary_search(
// disabled_validators.begin(), disabled_validators.end(),
// val_index);
// if (is_disabled_validator) {
// postponed_statements.emplace_back(std::move(vote));
// continue;
// }
// }

OUTCOME_TRY(found_batch,
batches_->find_batch(candidate_hash, candidate_receipt));
auto &[batch, just_created] = found_batch;
Expand Down

0 comments on commit a4f7f3f

Please sign in to comment.