Changeset View
Changeset View
Standalone View
Standalone View
qa/rpc-tests/mempool_spendcoinbase.py
Show All 22 Lines | class MempoolSpendCoinbaseTest(BitcoinTestFramework): | ||||
def __init__(self): | def __init__(self): | ||||
super().__init__() | super().__init__() | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = False | self.setup_clean_chain = False | ||||
def setup_network(self): | def setup_network(self): | ||||
# Just need one node for this test | # Just need one node for this test | ||||
args = ["-checkmempool", "-debug=mempool"] | args = ["-checkmempool"] | ||||
self.nodes = [] | self.nodes = [] | ||||
self.nodes.append(start_node(0, self.options.tmpdir, args)) | self.nodes.append(start_node(0, self.options.tmpdir, args)) | ||||
self.is_network_split = False | self.is_network_split = False | ||||
def run_test(self): | def run_test(self): | ||||
chain_height = self.nodes[0].getblockcount() | chain_height = self.nodes[0].getblockcount() | ||||
assert_equal(chain_height, 200) | assert_equal(chain_height, 200) | ||||
node0_address = self.nodes[0].getnewaddress() | node0_address = self.nodes[0].getnewaddress() | ||||
Show All 28 Lines |