pub fn sync_to(
        &self,
        target: LedgerInfoWithSignatures<Ed25519Signature>,
    ) -> impl Future<Output = Result<bool>> {
        let mut sender = self.coordinator_sender.clone();
        let (cb_sender, cb_receiver) = oneshot::channel();
        async move {
            sender
                .send(ConsensusToCoordinatorMessage::Requested(target, cb_sender))
                .await?;
            let sync_status = cb_receiver.await?;
            Ok(sync_status)
        }
    }
/// Sync validator's state up to given `version`
Sync validator's state up to given `version`
Sync validator ' s state up to given ` version `
pub fn sync_to(
        &self,
        target: LedgerInfoWithSignatures<Ed25519Signature>,
    ) -> impl Future<Output = Result<bool>> {
        let mut sender = self.coordinator_sender.clone();
        let (cb_sender, cb_receiver) = oneshot::channel();
        async move {
            sender
                .send(ConsensusToCoordinatorMessage::Requested(target, cb_sender))
                .await?;
            let sync_status = cb_receiver.await?;
            Ok(sync_status)
        }
    }
pub fn sync_to ( & self , target : LedgerInfoWithSignatures < Ed25519Signature > , ) -> impl Future < Output = Result < bool > > { let mut sender = self . coordinator_sender . clone ( ) ; let ( cb_sender , cb_receiver ) = oneshot :: channel ( ) ; async move { sender . send ( ConsensusToCoordinatorMessage :: Requested ( target , cb_sender ) ) . await ? ; let sync_status = cb_receiver . await ? ; Ok ( sync_status ) } }
Sync validator's state up to given `version`
Sync validator ' s state up to given ` version `
&self
target
LedgerInfoWithSignatures<Ed25519Signature>
&self
target
LedgerInfoWithSignatures<Ed25519Signature>