|
|
@ -3930,8 +3930,9 @@ bool CWallet::InitLoadWallet()
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::string walletFile = GetArg("-wallet", DEFAULT_WALLET_DAT);
|
|
|
|
SoftSetArg("-wallet", DEFAULT_WALLET_DAT);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (const std::string& walletFile : gArgs.GetArgs("-wallet")) {
|
|
|
|
if (boost::filesystem::path(walletFile).filename() != walletFile) {
|
|
|
|
if (boost::filesystem::path(walletFile).filename() != walletFile) {
|
|
|
|
return InitError(_("-wallet parameter must only specify a filename (not a path)"));
|
|
|
|
return InitError(_("-wallet parameter must only specify a filename (not a path)"));
|
|
|
|
} else if (SanitizeString(walletFile, SAFE_CHARS_FILENAME) != walletFile) {
|
|
|
|
} else if (SanitizeString(walletFile, SAFE_CHARS_FILENAME) != walletFile) {
|
|
|
@ -3943,6 +3944,7 @@ bool CWallet::InitLoadWallet()
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vpwallets.push_back(pwallet);
|
|
|
|
vpwallets.push_back(pwallet);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|