/// Find the first matching header in a list of block hashes, returning the index of the match and the BlockHeader.
/// Or None if not found.
Find the first matching header in a list of block hashes, returning the index of the match and the BlockHeader.
Or None if not found.
Find the first matching header in a list of block hashes returning the index of the match and the BlockHeader . Or None if not found .
pub async fn find_headers_after_hash<I: IntoIterator<Item = HashOutput>>(
        &mut self,
        hashes: I,
        count: u64,
    ) -> Result<Option<(usize, Vec<BlockHeader>)>, BlockchainStateServiceError>
    {
        let (reply_tx, reply_rx) = oneshot::channel();
        self.sender
            .send(BlockchainStateRequest::FindHeadersAfterHash(
                (hashes.into_iter().collect(), count),
                reply_tx,
            ))
            .await?;
        reply_rx.await?
    }
pub async fn find_headers_after_hash < I : IntoIterator < Item = HashOutput > > ( & mut self , hashes : I , count : u64 , ) -> Result < Option < ( usize , Vec < BlockHeader > ) > , BlockchainStateServiceError > { let ( reply_tx , reply_rx ) = oneshot :: channel ( ) ; self . sender . send ( BlockchainStateRequest :: FindHeadersAfterHash ( ( hashes . into_iter ( ) . collect ( ) , count ) , reply_tx , ) ) . await ? ; reply_rx . await ? }
Find the first matching header in a list of block hashes, returning the index of the match and the BlockHeader.
Find the first matching header in a list of block hashes returning the index of the match and the BlockHeader .
&mut self
hashes
I
count
u64