pub fn fill_tipset(&self, ts: &Tipset) -> Option<FullTipset>
    where
        DB: BlockStore,
    {
        // Collect all messages before moving tipset.
        let messages: Vec<(Vec<_>, Vec<_>)> = match ts
            .blocks()
            .iter()
            .map(|h| block_messages(self.blockstore(), h))
            .collect::<Result<_, Error>>()
        {
            Ok(m) => m,
            Err(e) => {
                log::trace!("failed to fill tipset: {}", e);
                return None;
            }
        };

        // Zip messages with blocks
        let blocks = ts
            .blocks()
            .iter()
            .cloned()
            .zip(messages)
            .map(|(header, (bls_messages, secp_messages))| Block {
                header,
                bls_messages,
                secp_messages,
            })
            .collect();

        // the given tipset has already been verified, so this cannot fail
        Some(FullTipset::new(blocks).unwrap())
    }
/// Constructs and returns a full tipset if messages from storage exists - non self version
Constructs and returns a full tipset if messages from storage exists - non self version
Constructs and returns a full tipset if messages from storage exists - non self version
pub fn fill_tipset(&self, ts: &Tipset) -> Option<FullTipset>
    where
        DB: BlockStore,
    {
        // Collect all messages before moving tipset.
        let messages: Vec<(Vec<_>, Vec<_>)> = match ts
            .blocks()
            .iter()
            .map(|h| block_messages(self.blockstore(), h))
            .collect::<Result<_, Error>>()
        {
            Ok(m) => m,
            Err(e) => {
                log::trace!("failed to fill tipset: {}", e);
                return None;
            }
        };
        // Zip messages with blocks
        let blocks = ts
            .blocks()
            .iter()
            .cloned()
            .zip(messages)
            .map(|(header, (bls_messages, secp_messages))| Block {
                header,
                bls_messages,
                secp_messages,
            })
            .collect();
        // the given tipset has already been verified, so this cannot fail
        Some(FullTipset::new(blocks).unwrap())
    }
pub fn fill_tipset ( & self , ts : & Tipset ) -> Option < FullTipset > where DB : BlockStore , { // Collect all messages before moving tipset. let messages : Vec < ( Vec < _ > , Vec < _ > ) > = match ts . blocks ( ) . iter ( ) . map ( | h | block_messages ( self . blockstore ( ) , h ) ) . collect :: < Result < _ , Error > > ( ) { Ok ( m ) => m , Err ( e ) => { log :: trace ! ( " " e ) ; return None ; } } ; // Zip messages with blocks let blocks = ts . blocks ( ) . iter ( ) . cloned ( ) . zip ( messages ) . map ( | ( header , ( bls_messages , secp_messages ) ) | Block { header , bls_messages , secp_messages , } ) . collect ( ) ; // the given tipset has already been verified, so this cannot fail Some ( FullTipset :: new ( blocks ) . unwrap ( ) ) }
Constructs and returns a full tipset if messages from storage exists - non self version
Constructs and returns a full tipset if messages from storage exists - non self version
&self
ts
&Tipset