def run_test(self):
    txouts = gen_return_txouts()
    relayfee = self.nodes[0].getnetworkinfo()['relayfee']
    txids = []
    utxos = create_confirmed_utxos(relayfee, self.nodes[0], 91)
    us0 = utxos.pop()
    inputs = [{'txid': us0['txid'], 'vout': us0['vout']}]
    outputs = {self.nodes[0].getnewaddress(): 0.0001}
    tx = self.nodes[0].createrawtransaction(inputs, outputs)
    self.nodes[0].settxfee(relayfee)
    txF = self.nodes[0].fundrawtransaction(tx)
    self.nodes[0].settxfee(0)
    txFS = self.nodes[0].signrawtransaction(txF['hex'])
    txid = self.nodes[0].sendrawtransaction(txFS['hex'])
    relayfee = self.nodes[0].getnetworkinfo()['relayfee']
    base_fee = (relayfee * 100)
    for i in range(3):
        txids.append([])
        txids[i] = create_lots_of_big_transactions(self.nodes[0], txouts, utxos[(30 * i):((30 * i) + 30)], 30, ((i + 1) * base_fee))
    assert (txid not in self.nodes[0].getrawmempool())
    txdata = self.nodes[0].gettransaction(txid)
    assert (txdata['confirmations'] == 0)
def run_test(self):
    txouts = gen_return_txouts()
    relayfee = self.nodes[0].getnetworkinfo()['relayfee']
    txids = []
    utxos = create_confirmed_utxos(relayfee, self.nodes[0], 91)
    us0 = utxos.pop()
    inputs = [{'txid': us0['txid'], 'vout': us0['vout']}]
    outputs = {self.nodes[0].getnewaddress(): 0.0001}
    tx = self.nodes[0].createrawtransaction(inputs, outputs)
    self.nodes[0].settxfee(relayfee)
    txF = self.nodes[0].fundrawtransaction(tx)
    self.nodes[0].settxfee(0)
    txFS = self.nodes[0].signrawtransaction(txF['hex'])
    txid = self.nodes[0].sendrawtransaction(txFS['hex'])
    relayfee = self.nodes[0].getnetworkinfo()['relayfee']
    base_fee = (relayfee * 100)
    for i in range(3):
        txids.append([])
        txids[i] = create_lots_of_big_transactions(self.nodes[0], txouts, utxos[(30 * i):((30 * i) + 30)], 30, ((i + 1) * base_fee))
    assert (txid not in self.nodes[0].getrawmempool())
    txdata = self.nodes[0].gettransaction(txid)
    assert (txdata['confirmations'] == 0)