Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_hd.py
Show All 15 Lines | |||||
class WalletHDTest(BitcoinTestFramework): | class WalletHDTest(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 = [[], ['-keypool=0']] | self.extra_args = [[], ['-keypool=0']] | ||||
def skip_test_if_missing_module(self): | |||||
self.skip_if_no_wallet() | |||||
def run_test(self): | def run_test(self): | ||||
# Make sure can't switch off usehd after wallet creation | # Make sure can't switch off usehd after wallet creation | ||||
self.stop_node(1) | self.stop_node(1) | ||||
self.nodes[1].assert_start_raises_init_error( | self.nodes[1].assert_start_raises_init_error( | ||||
['-usehd=0'], "Error: Error loading : You can't disable HD on an already existing HD wallet") | ['-usehd=0'], "Error: Error loading : You can't disable HD on an already existing HD wallet") | ||||
self.start_node(1) | self.start_node(1) | ||||
connect_nodes_bi(self.nodes[0], self.nodes[1]) | connect_nodes_bi(self.nodes[0], self.nodes[1]) | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |