pub fn probe_all<I>(&mut self, transactions: I) -> Box<Snapshot>
    where
        I: IntoIterator<Item = Box<Transaction>>,
    {
        self.poll_events();
        // Filter out already committed transactions; otherwise,
        // `create_block_with_transactions()` will panic.
        let schema = CoreSchema::new(self.snapshot());
        let uncommitted_txs = transactions.into_iter().filter(|tx| {
            !schema.transactions().contains(&tx.hash()) ||
                schema.transactions_pool().contains(&tx.hash())
        });
        self.create_block_with_transactions(uncommitted_txs);
        let snapshot = self.snapshot();
        self.rollback(1);
        snapshot
    }
/// Executes a list of transactions given the current state of the blockchain, but does not
/// commit execution results to the blockchain. The execution result is the same
/// as if transactions were included into a new block; for example,
/// transactions included into one of previous blocks do not lead to any state changes.
Executes a list of transactions given the current state of the blockchain, but does not
commit execution results to the blockchain. The execution result is the same
as if transactions were included into a new block; for example,
transactions included into one of previous blocks do not lead to any state changes.
Executes a list of transactions given the current state of the blockchain but does not commit execution results to the blockchain . The execution result is the same as if transactions were included into a new block ; for example transactions included into one of previous blocks do not lead to any state changes .
pub fn probe_all<I>(&mut self, transactions: I) -> Box<Snapshot>
    where
        I: IntoIterator<Item = Box<Transaction>>,
    {
        self.poll_events();
        // Filter out already committed transactions; otherwise,
        // `create_block_with_transactions()` will panic.
        let schema = CoreSchema::new(self.snapshot());
        let uncommitted_txs = transactions.into_iter().filter(|tx| {
            !schema.transactions().contains(&tx.hash()) ||
                schema.transactions_pool().contains(&tx.hash())
        });
        self.create_block_with_transactions(uncommitted_txs);
        let snapshot = self.snapshot();
        self.rollback(1);
        snapshot
    }
pub fn probe_all < I > ( & mut self , transactions : I ) -> Box < Snapshot > where I : IntoIterator < Item = Box < Transaction > > , { self . poll_events ( ) ; // Filter out already committed transactions; otherwise, // `create_block_with_transactions()` will panic. let schema = CoreSchema :: new ( self . snapshot ( ) ) ; let uncommitted_txs = transactions . into_iter ( ) . filter ( | tx | { ! schema . transactions ( ) . contains ( & tx . hash ( ) ) || schema . transactions_pool ( ) . contains ( & tx . hash ( ) ) } ) ; self . create_block_with_transactions ( uncommitted_txs ) ; let snapshot = self . snapshot ( ) ; self . rollback ( 1 ) ; snapshot }
Executes a list of transactions given the current state of the blockchain, but does not
commit execution results to the blockchain.
Executes a list of transactions given the current state of the blockchain but does not commit execution results to the blockchain .
&mut self
transactions
I
&mut self
transactions
I