File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -3930,19 +3930,21 @@ bool CWallet::InitLoadWallet()
3930
3930
return true ;
3931
3931
}
3932
3932
3933
- std::string walletFile = GetArg (" -wallet" , DEFAULT_WALLET_DAT);
3933
+ SoftSetArg (" -wallet" , DEFAULT_WALLET_DAT);
3934
3934
3935
- if (boost::filesystem::path (walletFile).filename () != walletFile) {
3936
- return InitError (_ (" -wallet parameter must only specify a filename (not a path)" ));
3937
- } else if (SanitizeString (walletFile, SAFE_CHARS_FILENAME) != walletFile) {
3938
- return InitError (_ (" Invalid characters in -wallet filename" ));
3939
- }
3935
+ for (const std::string& walletFile : gArgs .GetArgs (" -wallet" )) {
3936
+ if (boost::filesystem::path (walletFile).filename () != walletFile) {
3937
+ return InitError (_ (" -wallet parameter must only specify a filename (not a path)" ));
3938
+ } else if (SanitizeString (walletFile, SAFE_CHARS_FILENAME) != walletFile) {
3939
+ return InitError (_ (" Invalid characters in -wallet filename" ));
3940
+ }
3940
3941
3941
- CWallet * const pwallet = CreateWalletFromFile (walletFile);
3942
- if (!pwallet) {
3943
- return false ;
3942
+ CWallet * const pwallet = CreateWalletFromFile (walletFile);
3943
+ if (!pwallet) {
3944
+ return false ;
3945
+ }
3946
+ vpwallets.push_back (pwallet);
3944
3947
}
3945
- vpwallets.push_back (pwallet);
3946
3948
3947
3949
return true ;
3948
3950
}
You can’t perform that action at this time.
0 commit comments