You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Distributed under the MIT software license, see the accompanying
5
+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
+
"""Test multiwallet.
7
+
8
+
Verify that a pivxd node can load multiple wallet files
# should not initialize if wallet file is a symlink
54
+
# !TODO: backport bitcoin#10885
55
+
# os.symlink(wallet_dir('w1'), wallet_dir('w12'))
56
+
# self.assert_start_raises_init_error(0, ['-wallet=w12'], 'Error loading wallet w12. -wallet filename must be a regular file.')
57
+
58
+
self.log.info("Do not allow -zapwallettxes with multiwallet")
59
+
self.assert_start_raises_init_error(0, ['-zapwallettxes', '-wallet=w1', '-wallet=w2'], "Error: -zapwallettxes is only allowed with a single wallet file")
60
+
self.assert_start_raises_init_error(0, ['-zapwallettxes=1', '-wallet=w1', '-wallet=w2'], "Error: -zapwallettxes is only allowed with a single wallet file")
61
+
self.assert_start_raises_init_error(0, ['-zapwallettxes=2', '-wallet=w1', '-wallet=w2'], "Error: -zapwallettxes is only allowed with a single wallet file")
62
+
63
+
self.log.info("Do not allow -salvagewallet with multiwallet")
64
+
self.assert_start_raises_init_error(0, ['-salvagewallet', '-wallet=w1', '-wallet=w2'], "Error: -salvagewallet is only allowed with a single wallet file")
65
+
self.assert_start_raises_init_error(0, ['-salvagewallet=1', '-wallet=w1', '-wallet=w2'], "Error: -salvagewallet is only allowed with a single wallet file")
66
+
67
+
self.log.info("Do not allow -upgradewallet with multiwallet")
68
+
self.assert_start_raises_init_error(0, ['-upgradewallet', '-wallet=w1', '-wallet=w2'], "Error: -upgradewallet is only allowed with a single wallet file")
69
+
self.assert_start_raises_init_error(0, ['-upgradewallet=1', '-wallet=w1', '-wallet=w2'], "Error: -upgradewallet is only allowed with a single wallet file")
70
+
71
+
# !TODO: backport bitcoin#12220
72
+
'''
73
+
# if wallets/ doesn't exist, datadir should be the default wallet dir
0 commit comments