mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
fix path for bak file
This commit is contained in:
parent
438e94dc33
commit
c62cc4ec75
@ -39,8 +39,8 @@ class WalletHDTest(BitcoinTestFramework):
|
|||||||
self.nodes[1].importprivkey(self.nodes[0].dumpprivkey(non_hd_add))
|
self.nodes[1].importprivkey(self.nodes[0].dumpprivkey(non_hd_add))
|
||||||
|
|
||||||
# This should be enough to keep the master key and the non-HD key
|
# This should be enough to keep the master key and the non-HD key
|
||||||
self.nodes[1].backupwallet(tmpdir + "hd.bak")
|
self.nodes[1].backupwallet(tmpdir + "/hd.bak")
|
||||||
#self.nodes[1].dumpwallet(tmpdir + "hd.dump")
|
#self.nodes[1].dumpwallet(tmpdir + "/hd.dump")
|
||||||
|
|
||||||
# Derive some HD addresses and remember the last
|
# Derive some HD addresses and remember the last
|
||||||
# Also send funds to each add
|
# Also send funds to each add
|
||||||
@ -63,7 +63,7 @@ class WalletHDTest(BitcoinTestFramework):
|
|||||||
print("Restore backup ...")
|
print("Restore backup ...")
|
||||||
self.stop_node(1)
|
self.stop_node(1)
|
||||||
os.remove(self.options.tmpdir + "/node1/regtest/wallet.dat")
|
os.remove(self.options.tmpdir + "/node1/regtest/wallet.dat")
|
||||||
shutil.copyfile(tmpdir + "hd.bak", tmpdir + "/node1/regtest/wallet.dat")
|
shutil.copyfile(tmpdir + "/hd.bak", tmpdir + "/node1/regtest/wallet.dat")
|
||||||
self.nodes[1] = start_node(1, self.options.tmpdir, self.node_args[1])
|
self.nodes[1] = start_node(1, self.options.tmpdir, self.node_args[1])
|
||||||
#connect_nodes_bi(self.nodes, 0, 1)
|
#connect_nodes_bi(self.nodes, 0, 1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user