Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_dump.py
Show All 25 Lines | with open(file_name, encoding='utf8') as inputfile: | ||||
if line[0] != "#" and len(line) > 10: | if line[0] != "#" and len(line) > 10: | ||||
# split out some data | # split out some data | ||||
key_date_label, comment = line.split("#") | key_date_label, comment = line.split("#") | ||||
key_date_label = key_date_label.split(" ") | key_date_label = key_date_label.split(" ") | ||||
# key = key_date_label[0] | # key = key_date_label[0] | ||||
date = key_date_label[1] | date = key_date_label[1] | ||||
keytype = key_date_label[2] | keytype = key_date_label[2] | ||||
if not len(comment) or date.startswith('1970'): | if not len(comment) or date.startswith('1970'): | ||||
continue | continue | ||||
nakihito: Changes made previously in D4450. | |||||
addr_keypath = comment.split(" addr=")[1] | addr_keypath = comment.split(" addr=")[1] | ||||
addr = addr_keypath.split(" ")[0] | addr = addr_keypath.split(" ")[0] | ||||
keypath = None | keypath = None | ||||
if keytype == "inactivehdseed=1": | if keytype == "inactivehdseed=1": | ||||
# ensure the old master is still available | # ensure the old master is still available | ||||
assert hd_master_addr_old == addr | assert hd_master_addr_old == addr | ||||
elif keytype == "hdseed=1": | elif keytype == "hdseed=1": | ||||
Show All 28 Lines | |||||
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_timeout = 120 | self.rpc_timeout = 120 | ||||
def skip_test_if_missing_module(self): | |||||
self.skip_if_no_wallet() | |||||
nakihitoAuthorUnsubmitted Done Inline ActionsThis change is mostly formatting changes. nakihito: This change is mostly formatting changes. | |||||
def setup_network(self): | def setup_network(self): | ||||
self.add_nodes(self.num_nodes, extra_args=self.extra_args) | self.add_nodes(self.num_nodes, extra_args=self.extra_args) | ||||
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 | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |
Changes made previously in D4450.