We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 827b117 commit 3b7fd1aCopy full SHA for 3b7fd1a
polkadot/node/network/statement-distribution/src/v2/statement_store.rs
@@ -172,9 +172,9 @@ impl StatementStore {
172
pub fn disabled_bitmask(&self, group: &[ValidatorIndex]) -> BitVec<u8, BitOrderLsb0> {
173
let group_size = group.len();
174
let mut mask = BitVec::repeat(false, group_size);
175
- for i in group {
176
- if self.is_disabled(i) {
177
- mask.set(i.0 as usize, true);
+ for (i, v) in group.iter().enumerate() {
+ if self.is_disabled(v) {
+ mask.set(i, true);
178
}
179
180
mask
0 commit comments