mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 04:01:51 +00:00
Attribute invalid column proof error to correct peer (#6377)
* Attribute invalid column proof error to correct peer * Update beacon_node/beacon_chain/src/data_availability_checker.rs Co-authored-by: Pawan Dhananjay <pawandhananjay@gmail.com> * fix conflicts
This commit is contained in:
@@ -139,6 +139,15 @@ impl PeerGroup {
|
||||
pub fn all(&self) -> impl Iterator<Item = &PeerId> + '_ {
|
||||
self.peers.keys()
|
||||
}
|
||||
pub fn of_index(&self, index: usize) -> impl Iterator<Item = &PeerId> + '_ {
|
||||
self.peers.iter().filter_map(move |(peer, indices)| {
|
||||
if indices.contains(&index) {
|
||||
Some(peer)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/// Sequential ID that uniquely identifies ReqResp outgoing requests
|
||||
|
||||
Reference in New Issue
Block a user