19 args = [
"-checkmempool",
"-debug=mempool"]
37 coinbase_txids = [ self.
nodes[0].
getblock(h)[
'tx'][0]
for h
in b ]
38 spends1_raw = [
create_tx(self.
nodes[0], txid, node0_address, 500)
for txid
in coinbase_txids ]
44 spends2_raw = [
create_tx(self.
nodes[0], txid, node0_address, 499.99)
for txid
in spends1_id ]
51 for txid
in spends1_id+spends2_id:
53 assert(tx[
"confirmations"] > 0)
57 for node
in self.
nodes:
58 node.invalidateblock(blocks[0])
62 for txid
in spends1_id+spends2_id:
64 assert(tx[
"confirmations"] == 0)
70 for txid
in spends1_id+spends2_id:
72 assert(tx[
"confirmations"] > 0)
75 if __name__ ==
'__main__':
UniValue getblock(const UniValue ¶ms, bool fHelp)
UniValue getnewaddress(const UniValue ¶ms, bool fHelp)
def create_tx(dashd, fromaddresses, toaddress, amount, fee)
UniValue getblockhash(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 assert_equal(thing1, thing2)
UniValue gettransaction(const UniValue ¶ms, bool fHelp)