def make_txes(self, node_id, spendingPrevOuts, to_pubKey):
    ' makes a list of CTransactions each spending an input from spending PrevOuts to an output to_pubKey\n        :param   node_id:            (int) index of the CTestNode used as rpc connection. Must own spendingPrevOuts.\n                 spendingPrevouts:   ({bytes --> (int, bytes, int)} dictionary)\n                                     maps CStake "uniqueness" (i.e. serialized COutPoint)\n                                     to (amount, prevScript, timeBlockFrom).\n                 to_pubKey           (bytes) recipient public key\n        :return: block_txes:         ([CTransaction] list)\n        '
    assert_greater_than(len(self.nodes), node_id)
    rpc_conn = self.nodes[node_id]
    block_txes = []
    for uniqueness in spendingPrevOuts:
        value_out = int((spendingPrevOuts[uniqueness][0] - (DEFAULT_FEE * COIN)))
        scriptPubKey = CScript([to_pubKey, OP_CHECKSIG])
        prevout = COutPoint()
        prevout.deserialize_uniqueness(BytesIO(uniqueness))
        tx = create_transaction_from_outpoint(prevout, b'', value_out, scriptPubKey)
        raw_spend = rpc_conn.signrawtransaction(bytes_to_hex_str(tx.serialize()))['hex']
        signed_tx = CTransaction()
        signed_tx.from_hex(raw_spend)
        block_txes.append(signed_tx)
    return block_txes
makes a list of CTransactions each spending an input from spending PrevOuts to an output to_pubKey
:param   node_id:            (int) index of the CTestNode used as rpc connection. Must own spendingPrevOuts.
         spendingPrevouts:   ({bytes --> (int, bytes, int)} dictionary)
                             maps CStake "uniqueness" (i.e. serialized COutPoint)
                             to (amount, prevScript, timeBlockFrom).
         to_pubKey           (bytes) recipient public key
:return: block_txes:         ([CTransaction] list)
def make_txes(self, node_id, spendingPrevOuts, to_pubKey):
    ' makes a list of CTransactions each spending an input from spending PrevOuts to an output to_pubKey\n        :param   node_id:            (int) index of the CTestNode used as rpc connection. Must own spendingPrevOuts.\n                 spendingPrevouts:   ({bytes --> (int, bytes, int)} dictionary)\n                                     maps CStake "uniqueness" (i.e. serialized COutPoint)\n                                     to (amount, prevScript, timeBlockFrom).\n                 to_pubKey           (bytes) recipient public key\n        :return: block_txes:         ([CTransaction] list)\n        '
    assert_greater_than(len(self.nodes), node_id)
    rpc_conn = self.nodes[node_id]
    block_txes = []
    for uniqueness in spendingPrevOuts:
        value_out = int((spendingPrevOuts[uniqueness][0] - (DEFAULT_FEE * COIN)))
        scriptPubKey = CScript([to_pubKey, OP_CHECKSIG])
        prevout = COutPoint()
        prevout.deserialize_uniqueness(BytesIO(uniqueness))
        tx = create_transaction_from_outpoint(prevout, b, value_out, scriptPubKey)
        raw_spend = rpc_conn.signrawtransaction(bytes_to_hex_str(tx.serialize()))['hex']
        signed_tx = CTransaction()
        signed_tx.from_hex(raw_spend)
        block_txes.append(signed_tx)
    return block_txes