Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-wallet-standardness.py
Show All 34 Lines | |||||
class WalletStandardnessTest(BitcoinTestFramework): | class WalletStandardnessTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.extra_args = [['-acceptnonstdtxn=0'], ['-acceptnonstdtxn=1']] | self.extra_args = [['-acceptnonstdtxn=0'], ['-acceptnonstdtxn=1']] | ||||
def skip_test_if_missing_module(self): | |||||
self.skip_if_no_wallet() | |||||
def run_test(self): | def run_test(self): | ||||
std_node, nonstd_node = self.nodes | std_node, nonstd_node = self.nodes | ||||
address_nonstd = nonstd_node.getnewaddress() | address_nonstd = nonstd_node.getnewaddress() | ||||
# make and mature some coins for the nonstandard node | # make and mature some coins for the nonstandard node | ||||
nonstd_node.generate(120) | nonstd_node.generate(120) | ||||
sync_blocks(self.nodes) | sync_blocks(self.nodes) | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |