20 print(
"Initializing test directory "+self.options.tmpdir)
27 self.
nodes.append(
start_node(0, self.options.tmpdir, [
"-debug",
"-printpriority=1"]))
37 range_size = utxo_count // 3
40 start_range = i * range_size
41 end_range = start_range + range_size
52 sizes[i] += mempool[j][
'size']
53 assert(sizes[i] > MAX_BLOCK_SIZE)
64 print "Assert that prioritised transaction was mined" 65 assert(txids[0][0]
not in mempool)
66 assert(txids[0][1]
in mempool)
74 assert(high_fee_tx !=
None)
85 assert(high_fee_tx
in mempool)
96 print "Assert that de-prioritised transaction is still in mempool" 97 assert(high_fee_tx
in mempool)
99 if (x != high_fee_tx):
100 assert(x
not in mempool)
104 assert(len(utxo_list) > 0)
109 inputs.append({
"txid" : utxo[
"txid"],
"vout" : utxo[
"vout"]})
118 inputs.append({
"txid": txid,
"vout": 0})
127 except JSONRPCException
as exp:
138 print "Assert that prioritised free transaction is accepted to mempool" 142 if __name__ ==
'__main__':
UniValue prioritisetransaction(const UniValue ¶ms, bool fHelp)
UniValue listunspent(const UniValue ¶ms, bool fHelp)
UniValue getnewaddress(const UniValue ¶ms, bool fHelp)
UniValue getmempoolinfo(const UniValue ¶ms, bool fHelp)
def initialize_chain_clean(test_dir, num_nodes)
UniValue signrawtransaction(const UniValue ¶ms, bool fHelp)
UniValue createrawtransaction(const UniValue ¶ms, bool fHelp)
UniValue decoderawtransaction(const UniValue ¶ms, bool fHelp)
def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary=None)
UniValue generate(const UniValue ¶ms, bool fHelp)
UniValue sendrawtransaction(const UniValue ¶ms, bool fHelp)
UniValue getrawmempool(const UniValue ¶ms, bool fHelp)
def create_confirmed_utxos(fee, node, count)
UniValue getbestblockhash(const UniValue ¶ms, bool fHelp)
UniValue getnetworkinfo(const UniValue ¶ms, bool fHelp)
def assert_equal(thing1, thing2)
def create_lots_of_big_transactions(node, txouts, utxos, fee)