Exemplo n.º 1
0
 def enable_auto_mine_transactions(self):
     self.auto_mine_transactions = True
     sent_transaction_hashes = [
         self.send_transaction(extract_valid_transaction_params(tx))
         for tx in self._pending_transactions
     ]
     self._pending_transactions.clear()
     return sent_transaction_hashes
Exemplo n.º 2
0
 def _add_pending_transactions_to_pending_block(self):
     sent_transaction_hashes = [
         self._add_transaction_to_pending_block(
             extract_valid_transaction_params(tx))
         for tx in self._pending_transactions
     ]
     self._pending_transactions.clear()
     return sent_transaction_hashes
Exemplo n.º 3
0
 def _add_all_to_pending_block(self, pending_transactions):
     for pending in pending_transactions:
         txn = extract_valid_transaction_params(pending)
         yield self._add_transaction_to_pending_block(txn, txn_type='send_signed')