pub fn create_block(&mut self) {
        self.poll_events();

        let snapshot = self.blockchain.snapshot();
        let schema = CoreSchema::new(&snapshot);
        let txs = schema.transactions_pool();
        let tx_hashes: Vec<_> = txs.iter().collect();
        //TODO: every block should contain two merges (ECR-975)
        {
            let blockchain = self.blockchain_mut();
            let fork = blockchain.fork();
            blockchain.merge(fork.into_patch()).unwrap();
        }
        self.do_create_block(&tx_hashes);
    }
/// Creates block with all transactions in the pool.
Creates block with all transactions in the pool.
Creates block with all transactions in the pool .
pub fn create_block(&mut self) {
        self.poll_events();
        let snapshot = self.blockchain.snapshot();
        let schema = CoreSchema::new(&snapshot);
        let txs = schema.transactions_pool();
        let tx_hashes: Vec<_> = txs.iter().collect();
        //TODO: every block should contain two merges (ECR-975)
        {
            let blockchain = self.blockchain_mut();
            let fork = blockchain.fork();
            blockchain.merge(fork.into_patch()).unwrap();
        }
        self.do_create_block(&tx_hashes);
    }
pub fn create_block ( & mut self ) { self . poll_events ( ) ; let snapshot = self . blockchain . snapshot ( ) ; let schema = CoreSchema :: new ( & snapshot ) ; let txs = schema . transactions_pool ( ) ; let tx_hashes : Vec < _ > = txs . iter ( ) . collect ( ) ; //TODO: every block should contain two merges (ECR-975) { let blockchain = self . blockchain_mut ( ) ; let fork = blockchain . fork ( ) ; blockchain . merge ( fork . into_patch ( ) ) . unwrap ( ) ; } self . do_create_block ( & tx_hashes ) ; }
Creates block with all transactions in the pool.
Creates block with all transactions in the pool .
&mut self
&mut self