fn cleanup_unused_nodes(&mut self, ni_dkg_config: &NiDkgConfig) {
            let dealers_and_receivers = dealers_and_receivers(ni_dkg_config);
            let unused_node_ids: Vec<NodeId> = self
                .crypto_components
                .keys()
                .copied()
                .filter(|node_id| !dealers_and_receivers.contains(node_id))
                .collect();
            for node_id in unused_node_ids {
                self.crypto_components.remove(&node_id);
            }
        }
/// Cleans up nodes whose IDs are no longer in use
Cleans up nodes whose IDs are no longer in use
Cleans up nodes whose IDs are no longer in use
fn cleanup_unused_nodes(&mut self, ni_dkg_config: &NiDkgConfig) {
            let dealers_and_receivers = dealers_and_receivers(ni_dkg_config);
            let unused_node_ids: Vec<NodeId> = self
                .crypto_components
                .keys()
                .copied()
                .filter(|node_id| !dealers_and_receivers.contains(node_id))
                .collect();
            for node_id in unused_node_ids {
                self.crypto_components.remove(&node_id);
            }
        }
fn cleanup_unused_nodes ( & mut self , ni_dkg_config : & NiDkgConfig ) { let dealers_and_receivers = dealers_and_receivers ( ni_dkg_config ) ; let unused_node_ids : Vec < NodeId > = self . crypto_components . keys ( ) . copied ( ) . filter ( | node_id | ! dealers_and_receivers . contains ( node_id ) ) . collect ( ) ; for node_id in unused_node_ids { self . crypto_components . remove ( & node_id ) ; } }
Cleans up nodes whose IDs are no longer in use
Cleans up nodes whose IDs are no longer in use
&mut self
ni_dkg_config
&NiDkgConfig
&mut self
ni_dkg_config
&NiDkgConfig