aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.cpp
diff options
context:
space:
mode:
authorKiminuo <kiminuo@protonmail.com>2021-02-26 09:52:50 +0100
committerKiminuo <kiminuo@protonmail.com>2021-04-18 12:07:00 +0200
commitbb8d1c6e029a2fd01387599d2ff3bfc879a8ada5 (patch)
tree1b34f491137be9ef3f9bd5b78f471db0d975e8cc /src/util/system.cpp
parentb4190eff72c00e384ad238f9c2f10c8b91be969b (diff)
downloadbitcoin-bb8d1c6e029a2fd01387599d2ff3bfc879a8ada5.tar.xz
Change ClearDataDirPathCache() to ArgsManager.ClearPathCache().
Diffstat (limited to 'src/util/system.cpp')
-rw-r--r--src/util/system.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp
index 474c4893f9..9b3bd46b38 100644
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -445,7 +445,7 @@ const fs::path& ArgsManager::GetDataDirPath(bool net_specific) const
return path;
}
-void ArgsManager::ClearDatadirPathCache()
+void ArgsManager::ClearPathCache()
{
LOCK(cs_args);
@@ -813,11 +813,6 @@ bool CheckDataDirOption()
return datadir.empty() || fs::is_directory(fs::system_complete(datadir));
}
-void ClearDatadirCache()
-{
- gArgs.ClearDatadirPathCache();
-}
-
fs::path GetConfigFile(const std::string& confPath)
{
return AbsPathForConfigVal(fs::path(confPath), false);
@@ -976,7 +971,7 @@ bool ArgsManager::ReadConfigFiles(std::string& error, bool ignore_invalid_keys)
}
// If datadir is changed in .conf file:
- ClearDatadirCache();
+ gArgs.ClearPathCache();
if (!CheckDataDirOption()) {
error = strprintf("specified data directory \"%s\" does not exist.", GetArg("-datadir", ""));
return false;