|
|
|
@ -29,7 +29,7 @@ bool VerifyWallets(WalletContext& context)
|
|
|
|
|
fs::path wallet_dir = fs::PathFromString(args.GetArg("-walletdir", ""));
|
|
|
|
|
boost::system::error_code error;
|
|
|
|
|
// The canonical path cleans the path, preventing >1 Berkeley environment instances for the same directory
|
|
|
|
|
fs::path canonical_wallet_dir = fs::canonical(wallet_dir, error);
|
|
|
|
|
fs::path canonical_wallet_dir = fs::canonical(wallet_dir, error).remove_trailing_separator();
|
|
|
|
|
if (error || !fs::exists(wallet_dir)) {
|
|
|
|
|
chain.initError(strprintf(_("Specified -walletdir \"%s\" does not exist"), fs::PathToString(wallet_dir)));
|
|
|
|
|
return false;
|
|
|
|
|