fn block_status<B: BlockT>(
	chain: &crate::chain::Client<B>,
	queue_blocks: &HashSet<B::Hash>,
	hash: B::Hash) -> Result<BlockStatus, ClientError>
{
	if queue_blocks.contains(&hash) {
		return Ok(BlockStatus::Queued);
	}

	chain.block_status(&BlockId::Hash(hash))
}
/// Get block status, taking into account import queue.
Get block status, taking into account import queue.
Get block status taking into account import queue .
fn block_status<B: BlockT>(
	chain: &crate::chain::Client<B>,
	queue_blocks: &HashSet<B::Hash>,
	hash: B::Hash) -> Result<BlockStatus, ClientError>
{
	if queue_blocks.contains(&hash) {
		return Ok(BlockStatus::Queued);
	}
	chain.block_status(&BlockId::Hash(hash))
}
fn block_status < B : BlockT > ( chain : & crate :: chain :: Client < B > , queue_blocks : & HashSet < B :: Hash > , hash : B :: Hash ) -> Result < BlockStatus , ClientError > { if queue_blocks . contains ( & hash ) { return Ok ( BlockStatus :: Queued ) ; } chain . block_status ( & BlockId :: Hash ( hash ) ) }
Get block status, taking into account import queue.
Get block status taking into account import queue .
chain
&crate::chain::Client<B>
queue_blocks
&HashSet<B::Hash>
hash
B::Hash
chain
&crate::chain::Client<B>
queue_blocks
&HashSet<B::Hash>
hash
B::Hash