Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_spendcoinbase.py
Show All 14 Lines | |||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import * | from test_framework.util import * | ||||
# Create one-input, one-output, no-fee transaction: | # Create one-input, one-output, no-fee transaction: | ||||
class MempoolSpendCoinbaseTest(BitcoinTestFramework): | class MempoolSpendCoinbaseTest(BitcoinTestFramework): | ||||
def set_test_params(self): | |||||
def __init__(self): | |||||
super().__init__() | |||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = False | |||||
# Just need one node for this test | |||||
self.extra_args = [["-checkmempool"]] | self.extra_args = [["-checkmempool"]] | ||||
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() | ||||
# Coinbase at height chain_height-100+1 ok in mempool, should | # Coinbase at height chain_height-100+1 ok in mempool, should | ||||
Show All 27 Lines |