pub fn create_block_with_tx_hashes(&mut self, tx_hashes: &[crypto::Hash]) {
        self.poll_events();

        {
            let snapshot = self.blockchain.snapshot();
            let schema = CoreSchema::new(&snapshot);
            for hash in tx_hashes {
                assert!(schema.transactions_pool().contains(hash));
            }
        }

        self.do_create_block(tx_hashes);
    }
/// Creates block with the specified transactions. The transactions must be previously
/// sent to the node via API or directly put into the `channel()`.
///
/// # Panics
///
/// - Panics in the case any of transaction hashes are not in the pool.
Creates block with the specified transactions. The transactions must be previously
sent to the node via API or directly put into the `channel()`.
Creates block with the specified transactions . The transactions must be previously sent to the node via API or directly put into the ` channel () ` .
pub fn create_block_with_tx_hashes(&mut self, tx_hashes: &[crypto::Hash]) {
        self.poll_events();
        {
            let snapshot = self.blockchain.snapshot();
            let schema = CoreSchema::new(&snapshot);
            for hash in tx_hashes {
                assert!(schema.transactions_pool().contains(hash));
            }
        }
        self.do_create_block(tx_hashes);
    }
pub fn create_block_with_tx_hashes ( & mut self , tx_hashes : & [ crypto :: Hash ] ) { self . poll_events ( ) ; { let snapshot = self . blockchain . snapshot ( ) ; let schema = CoreSchema :: new ( & snapshot ) ; for hash in tx_hashes { assert ! ( schema transactions_pool ( ) contains ( hash ) ) ; } } self . do_create_block ( tx_hashes ) ; }
Creates block with the specified transactions.
Creates block with the specified transactions .
&mut self
tx_hashes
&[crypto::Hash]
&mut self
tx_hashes
&[crypto::Hash]
panics
Panics in the case any of transaction hashes are not in the pool.
Panics in the case any of transaction hashes are not in the pool .