pub async fn update_eligible_nodes(
        &mut self,
        validators: Vec<ValidatorInfo>,
    ) -> Result<(), NetworkError> {
        self.conn_mgr_reqs_tx
            .send(ConnectivityRequest::UpdateEligibleNodes(
                validators
                    .into_iter()
                    .map(|validator| {
                        (
                            *validator.account_address(),
                            NetworkPublicKeys {
                                identity_public_key: validator.network_identity_public_key(),
                                signing_public_key: validator.network_signing_public_key().clone(),
                            },
                        )
                    })
                    .collect(),
            ))
            .await?;
        Ok(())
    }
/// Update set of nodes eligible to join the network. In the future, this should be handled by
/// the unified reconfiguration event.
Update set of nodes eligible to join the network. In the future, this should be handled by
the unified reconfiguration event.
Update set of nodes eligible to join the network . In the future this should be handled by the unified reconfiguration event .
pub async fn update_eligible_nodes(
        &mut self,
        validators: Vec<ValidatorInfo>,
    ) -> Result<(), NetworkError> {
        self.conn_mgr_reqs_tx
            .send(ConnectivityRequest::UpdateEligibleNodes(
                validators
                    .into_iter()
                    .map(|validator| {
                        (
                            *validator.account_address(),
                            NetworkPublicKeys {
                                identity_public_key: validator.network_identity_public_key(),
                                signing_public_key: validator.network_signing_public_key().clone(),
                            },
                        )
                    })
                    .collect(),
            ))
            .await?;
        Ok(())
    }
pub async fn update_eligible_nodes ( & mut self , validators : Vec < ValidatorInfo > , ) -> Result < ( ) , NetworkError > { self . conn_mgr_reqs_tx . send ( ConnectivityRequest :: UpdateEligibleNodes ( validators . into_iter ( ) . map ( | validator | { ( * validator . account_address ( ) , NetworkPublicKeys { identity_public_key : validator . network_identity_public_key ( ) , signing_public_key : validator . network_signing_public_key ( ) . clone ( ) , } , ) } ) . collect ( ) , ) ) . await ? ; Ok ( ( ) ) }
Update set of nodes eligible to join the network.
Update set of nodes eligible to join the network .
&mut self
validators
Vec<ValidatorInfo>
&mut self
validators
Vec<ValidatorInfo>