mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-18 02:04:59 +02:00
Use ArgsManager::GetPathArg() for "-blocksdir" option
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user