aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-02-04 18:52:10 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-02-09 19:31:23 +0200
commit06fed4c21ec64cd224231d15cbbeb985b8fba5f2 (patch)
treeae5de5d2394f6ded3fb3d95ca242f6faf36dc89f /src/util/system.cpp
parent15b632bf169f6272ca90faba8d8036e3e822542f (diff)
downloadbitcoin-06fed4c21ec64cd224231d15cbbeb985b8fba5f2.tar.xz
Use ArgsManager::GetPathArg() for "-blocksdir" option
Diffstat (limited to 'src/util/system.cpp')
-rw-r--r--src/util/system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp
index 7bf1e8b8e5..c5130dc684 100644
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -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;