Changeset View
Changeset View
Standalone View
Standalone View
test/functional/listtransactions.py
Show All 21 Lines | class ListTransactionsTest(BitcoinTestFramework): | ||||
def __init__(self): | def __init__(self): | ||||
super().__init__() | super().__init__() | ||||
self.num_nodes = 4 | self.num_nodes = 4 | ||||
self.setup_clean_chain = False | self.setup_clean_chain = False | ||||
def setup_nodes(self): | def setup_nodes(self): | ||||
# This test requires mocktime | # This test requires mocktime | ||||
enable_mocktime() | self.enable_mocktime() | ||||
self.nodes = self.start_nodes(self.num_nodes, self.options.tmpdir) | self.nodes = self.start_nodes(self.num_nodes, self.options.tmpdir) | ||||
def run_test(self): | def run_test(self): | ||||
# Simple send, 0 to 1: | # Simple send, 0 to 1: | ||||
txid = self.nodes[0].sendtoaddress(self.nodes[1].getnewaddress(), 0.1) | txid = self.nodes[0].sendtoaddress(self.nodes[1].getnewaddress(), 0.1) | ||||
self.sync_all() | self.sync_all() | ||||
assert_array_result(self.nodes[0].listtransactions(), | assert_array_result(self.nodes[0].listtransactions(), | ||||
{"txid": txid}, | {"txid": txid}, | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |