Skip to content

Commit

Permalink
Fixes in filter_backed_statements
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Oct 26, 2023
1 parent cce71ee commit 7a19f55
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions polkadot/runtime/parachains/src/paras_inherent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1130,16 +1130,17 @@ fn filter_backed_statements<T: Config>(
return false
}
};
idx += 1;

filtered = disabled_validators.contains(voted_validator_index);

// If we are removing a validity vote - modify `validator_indices` too
if filtered {
let res = if disabled_validators.contains(voted_validator_index) {
bc.validator_indices.set(idx, false);
}

!filtered
filtered = true;
false // drop the validity vote
} else {
true // keep the validity vote
};
idx += 1;
res
});
}

Expand Down

0 comments on commit 7a19f55

Please sign in to comment.