pub async fn chain_exchange_fts(
        &self,
        peer_id: Option<PeerId>,
        tsk: &TipsetKeys,
    ) -> Result<FullTipset, String> {
        let mut fts = self
            .handle_chain_exchange_request(peer_id, tsk, 1, BLOCKS | MESSAGES)
            .await?;

        if fts.len() != 1 {
            return Err(format!(
                "Full tipset request returned {} tipsets",
                fts.len()
            ));
        }
        Ok(fts.remove(0))
    }
/// Send a chain_exchange request for a single full tipset (includes messages)
/// If `peer_id` is `None`, requests will be sent to a set of shuffled peers.
Send a chain_exchange request for a single full tipset (includes messages)
If `peer_id` is `None`, requests will be sent to a set of shuffled peers.
Send a chain_exchange request for a single full tipset ( includes messages ) If ` peer_id ` is ` None ` requests will be sent to a set of shuffled peers .
pub async fn chain_exchange_fts(
        &self,
        peer_id: Option<PeerId>,
        tsk: &TipsetKeys,
    ) -> Result<FullTipset, String> {
        let mut fts = self
            .handle_chain_exchange_request(peer_id, tsk, 1, BLOCKS | MESSAGES)
            .await?;
        if fts.len() != 1 {
            return Err(format!(
                "Full tipset request returned {} tipsets",
                fts.len()
            ));
        }
        Ok(fts.remove(0))
    }
pub async fn chain_exchange_fts ( & self , peer_id : Option < PeerId > , tsk : & TipsetKeys , ) -> Result < FullTipset , String > { let mut fts = self . handle_chain_exchange_request ( peer_id , tsk , 1 , BLOCKS | MESSAGES ) . await ? ; if fts . len ( ) != 1 { return Err ( format ! ( " " fts len ( ) ) ) ; } Ok ( fts . remove ( 0 ) ) }
Send a chain_exchange request for a single full tipset (includes messages)
If `peer_id` is `None`, requests will be sent to a set of shuffled peers.
Send a chain_exchange request for a single full tipset ( includes messages ) If ` peer_id ` is ` None ` requests will be sent to a set of shuffled peers .
&self
peer_id
Option<PeerId>
tsk
&TipsetKeys