Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_dump.py
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
vaddr = self.nodes[0].validateaddress( | vaddr = self.nodes[0].validateaddress( | ||||
addr) # required to get hd keypath | addr) # required to get hd keypath | ||||
addrs.append(vaddr) | addrs.append(vaddr) | ||||
# Should be a no-op: | # Should be a no-op: | ||||
self.nodes[0].keypoolrefill() | self.nodes[0].keypoolrefill() | ||||
# Test scripts dump by adding a 1-of-1 multisig address | # Test scripts dump by adding a 1-of-1 multisig address | ||||
multisig_addr = self.nodes[0].addmultisigaddress( | multisig_addr = self.nodes[0].addmultisigaddress( | ||||
1, [addrs[0]["address"]]) | 1, [addrs[0]["address"]])["address"] | ||||
# dump unencrypted wallet | # dump unencrypted wallet | ||||
result = self.nodes[0].dumpwallet( | result = self.nodes[0].dumpwallet( | ||||
tmpdir + "/node0/wallet.unencrypted.dump") | tmpdir + "/node0/wallet.unencrypted.dump") | ||||
assert_equal(result['filename'], os.path.abspath( | assert_equal(result['filename'], os.path.abspath( | ||||
tmpdir + "/node0/wallet.unencrypted.dump")) | tmpdir + "/node0/wallet.unencrypted.dump")) | ||||
found_addr, found_script_addr, found_addr_chg, found_addr_rsv, hd_master_addr_unenc = \ | found_addr, found_script_addr, found_addr_chg, found_addr_rsv, hd_master_addr_unenc = \ | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |