/// Returns whether the transaction id `id` is in the TransactionIndex of
/// the IndexedBlockStore and supposing the Block `block_id` is in the block store,
/// whether the transaction is <= the block
///
/// Note:
/// transaction_index_contains requires the indexed blockstore under
/// consideration to be exclusive with respect to writes.
Returns whether the transaction id `id` is in the TransactionIndex of
the IndexedBlockStore and supposing the Block `block_id` is in the block store,
whether the transaction is <= the block

transaction_index_contains requires the indexed blockstore under
consideration to be exclusive with respect to writes.
Returns whether the transaction id ` id ` is in the TransactionIndex of the IndexedBlockStore and supposing the Block ` block_id ` is in the block store whether the transaction is < = the block transaction_index_contains requires the indexed blockstore under consideration to be exclusive with respect to writes .
fn transaction_index_contains(
        &self,
        index: &dyn IndexedBlockStore,
        block_id: &str,
        id: &str,
    ) -> Result<bool, BlockManagerError> {
        if let Some(block) = TransactionIndex::get_block_by_id(index, id)? {
            let head = index
                .get(&[block_id])?
                .next()
                .expect("BlockStore updated during transaction index check");
            Ok(block.header().block_num() <= head.header().block_num())
        } else {
            Ok(false)
        }
    }
fn transaction_index_contains ( & self , index : & dyn IndexedBlockStore , block_id : & str , id : & str , ) -> Result < bool , BlockManagerError > { if let Some ( block ) = TransactionIndex :: get_block_by_id ( index , id ) ? { let head = index . get ( & [ block_id ] ) ? . next ( ) . expect ( " " ) ; Ok ( block . header ( ) . block_num ( ) <= head . header ( ) . block_num ( ) ) } else { Ok ( false ) } }
Returns whether the transaction id `id` is in the TransactionIndex of
the IndexedBlockStore and supposing the Block `block_id` is in the block store,
whether the transaction is <= the block
Returns whether the transaction id ` id ` is in the TransactionIndex of the IndexedBlockStore and supposing the Block ` block_id ` is in the block store whether the transaction is < = the block
&self
index
&dyn IndexedBlockStore
block_id
&str
id
&str