pub(super) fn remove_unknown_transaction(&mut self, tx_hash: Hash) -> Option<IncompleteBlock> {
        if let Some(ref mut incomplete_block) = self.incomplete_block {
            if self.invalid_txs.contains(&tx_hash) {
                panic!("Received a block with transaction known as invalid");
            }

            incomplete_block.unknown_txs.remove(&tx_hash);
            if incomplete_block.unknown_txs.is_empty() {
                return Some(incomplete_block.clone());
            }
        }
        None
    }
/// Checks if there is an incomplete block that waits for this transaction.
/// Returns a block that don't contain unknown transactions.
///
/// Transaction is ignored if the following criteria are fulfilled:
///
/// - transaction isn't contained in the unknown transactions list of block
/// - transaction isn't a part of block
///
/// # Panics
///
/// Panics if transaction for incomplete block is known as invalid.
Checks if there is an incomplete block that waits for this transaction.
Returns a block that don't contain unknown transactions.

Transaction is ignored if the following criteria are fulfilled.

transaction isn't contained in the unknown transactions list of block
transaction isn't a part of block
Checks if there is an incomplete block that waits for this transaction . Returns a block that don ' t contain unknown transactions . Transaction is ignored if the following criteria are fulfilled . transaction isn ' t contained in the unknown transactions list of block transaction isn ' t a part of block
pub(super) fn remove_unknown_transaction(&mut self, tx_hash: Hash) -> Option<IncompleteBlock> {
        if let Some(ref mut incomplete_block) = self.incomplete_block {
            if self.invalid_txs.contains(&tx_hash) {
                panic!("Received a block with transaction known as invalid");
            }
            incomplete_block.unknown_txs.remove(&tx_hash);
            if incomplete_block.unknown_txs.is_empty() {
                return Some(incomplete_block.clone());
            }
        }
        None
    }
pub ( super ) fn remove_unknown_transaction ( & mut self , tx_hash : Hash ) -> Option < IncompleteBlock > { if let Some ( ref mut incomplete_block ) = self . incomplete_block { if self . invalid_txs . contains ( & tx_hash ) { panic ! ( " " ) ; } incomplete_block . unknown_txs . remove ( & tx_hash ) ; if incomplete_block . unknown_txs . is_empty ( ) { return Some ( incomplete_block . clone ( ) ) ; } } None }
Checks if there is an incomplete block that waits for this transaction.
Checks if there is an incomplete block that waits for this transaction .
&mut self
tx_hash
Hash
&mut self
tx_hash
Hash
panics
Panics if transaction for incomplete block is known as invalid.
Panics if transaction for incomplete block is known as invalid .