Use ArgsManager::GetPathArg() for "-blocksdir" option
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -416,7 +416,7 @@ const fs::path& ArgsManager::GetBlocksDirPath() const
|
|||||||
if (!path.empty()) return path;
|
if (!path.empty()) return path;
|
||||||
|
|
||||||
if (IsArgSet("-blocksdir")) {
|
if (IsArgSet("-blocksdir")) {
|
||||||
path = fs::absolute(fs::PathFromString(GetArg("-blocksdir", "")));
|
path = fs::absolute(GetPathArg("-blocksdir"));
|
||||||
if (!fs::is_directory(path)) {
|
if (!fs::is_directory(path)) {
|
||||||
path = "";
|
path = "";
|
||||||
return path;
|
return path;
|
||||||
|
|||||||
Reference in new issue
Block a user