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

This commit is contained in:
Hennadii Stepanov 2022-02-04 18:52:10 +02:00
parent 15b632bf16
commit 06fed4c21e
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -416,7 +416,7 @@ const fs::path& ArgsManager::GetBlocksDirPath() const
if (!path.empty()) return path;
if (IsArgSet("-blocksdir")) {
path = fs::absolute(fs::PathFromString(GetArg("-blocksdir", "")));
path = fs::absolute(GetPathArg("-blocksdir"));
if (!fs::is_directory(path)) {
path = "";
return path;