Use ArgsManager::GetPathArg() for "-walletdir" option

This commit is contained in:
Hennadii Stepanov
2022-02-04 18:58:39 +02:00
parent 06fed4c21e
commit ecd094e2b1
3 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ fs::path GetWalletDir()
fs::path path;
if (gArgs.IsArgSet("-walletdir")) {
path = fs::PathFromString(gArgs.GetArg("-walletdir", ""));
path = gArgs.GetPathArg("-walletdir");
if (!fs::is_directory(path)) {
// If the path specified doesn't exist, we return the deliberately
// invalid empty string.