Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_spendcoinbase.py
Show All 16 Lines | |||||
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 set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [["-checkmempool"]] | self.extra_args = [ | ||||
["-checkmempool", "-deprecatedrpc=signrawtransaction"]] | |||||
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 | ||||
# get mined. Coinbase at height chain_height-100+2 is | # get mined. Coinbase at height chain_height-100+2 is | ||||
Show All 26 Lines |