Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_dump.py
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | with open(file_name, encoding='utf8') as inputfile: | ||||
return found_addr, found_script_addr, found_addr_chg, found_addr_rsv, hd_master_addr_ret | return found_addr, found_script_addr, found_addr_chg, found_addr_rsv, hd_master_addr_ret | ||||
class WalletDumpTest(BitcoinTestFramework): | class WalletDumpTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [["-keypool=90"]] | self.extra_args = [["-keypool=90"]] | ||||
self.rpc_timewait = 120 | |||||
def setup_network(self, split=False): | def setup_network(self, split=False): | ||||
# Use 1 minute timeout because the initial getnewaddress RPC can take | self.add_nodes(self.num_nodes, extra_args=self.extra_args) | ||||
# longer than the default 30 seconds due to an expensive | |||||
# CWallet::TopUpKeyPool call, and the encryptwallet RPC made later in | |||||
# the test often takes even longer. | |||||
self.add_nodes(self.num_nodes, extra_args=self.extra_args, timewait=60) | |||||
self.start_nodes() | self.start_nodes() | ||||
def run_test(self): | def run_test(self): | ||||
tmpdir = self.options.tmpdir | tmpdir = self.options.tmpdir | ||||
# generate 20 addresses to compare against the dump | # generate 20 addresses to compare against the dump | ||||
test_addr_count = 20 | test_addr_count = 20 | ||||
addrs = [] | addrs = [] | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |