Resolve TODO(das)

This commit is contained in:
dapplion
2025-05-27 14:13:31 -05:00
parent 86ad87eced
commit 52722b7b2e
8 changed files with 48 additions and 61 deletions

View File

@@ -724,7 +724,7 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
// Collect all peers that sent a column that was invalid. Must
// run .unique as a single peer can send multiple invalid
// columns. Penalize once to avoid insta-bans
.flat_map(|(index, _)| peer_group.of_index((*index) as usize))
.flat_map(|(index, _)| peer_group.of_index(&(*index as usize)))
.unique()
.collect(),
_ => peer_group.all().collect(),