gArgs.AddArg("-salvagewallet","Attempt to recover private keys from a corrupt wallet on startup",ArgsManager::ALLOW_ANY,OptionsCategory::WALLET);
gArgs.AddArg("-spendzeroconfchange",strprintf("Spend unconfirmed change when sending transactions (default: %u)",DEFAULT_SPEND_ZEROCONF_CHANGE),ArgsManager::ALLOW_ANY,OptionsCategory::WALLET);
gArgs.AddArg("-txconfirmtarget=<n>",strprintf("If paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default: %u)",DEFAULT_TX_CONFIRM_TARGET),ArgsManager::ALLOW_ANY,OptionsCategory::WALLET);
gArgs.AddArg("-upgradewallet","Upgrade wallet to latest format on startup",ArgsManager::ALLOW_ANY,OptionsCategory::WALLET);
gArgs.AddArg("-wallet=<path>","Specify wallet database path. Can be specified multiple times to load multiple wallets. Path is interpreted relative to <walletdir> if it is not absolute, and will be created if it does not exist (as a directory containing a wallet.dat file and log files). For backwards compatibility this will also accept names of existing data files in <walletdir>.)",ArgsManager::ALLOW_ANY|ArgsManager::NETWORK_ONLY,OptionsCategory::WALLET);
gArgs.AddArg("-walletbroadcast",strprintf("Make the wallet broadcast transactions (default: %u)",DEFAULT_WALLETBROADCAST),ArgsManager::ALLOW_ANY,OptionsCategory::WALLET);
gArgs.AddArg("-walletdir=<dir>","Specify directory to hold wallets (default: <datadir>/wallets if it exists, otherwise <datadir>)",ArgsManager::ALLOW_ANY|ArgsManager::NETWORK_ONLY,OptionsCategory::WALLET);
error=_("Cannot upgrade a non HD split wallet without upgrading to support pre split keypool. Please use -upgradewallet=169900 or -upgradewallet with no version specified.").translated;
error=_("Cannot upgrade a non HD split wallet without upgrading to support pre split keypool. Please use version 169900 or no version specified.").translated;
@ -125,10 +125,6 @@ class MultiWalletTest(BitcoinTestFramework):
self.nodes[0].assert_start_raises_init_error(['-salvagewallet','-wallet=w1','-wallet=w2'],"Error: -salvagewallet is only allowed with a single wallet file")
self.nodes[0].assert_start_raises_init_error(['-salvagewallet=1','-wallet=w1','-wallet=w2'],"Error: -salvagewallet is only allowed with a single wallet file")
self.log.info("Do not allow -upgradewallet with multiwallet")
self.nodes[0].assert_start_raises_init_error(['-upgradewallet','-wallet=w1','-wallet=w2'],"Error: -upgradewallet is only allowed with a single wallet file")
self.nodes[0].assert_start_raises_init_error(['-upgradewallet=1','-wallet=w1','-wallet=w2'],"Error: -upgradewallet is only allowed with a single wallet file")
# if wallets/ doesn't exist, datadir should be the default wallet dir
wallet_dir2=data_dir('walletdir')
os.rename(wallet_dir(),wallet_dir2)
@ -332,18 +328,5 @@ class MultiWalletTest(BitcoinTestFramework):