Add CheckDataDirOption() function

This commit is contained in:
Hennadii Stepanov
2019-07-24 03:21:25 +03:00
parent c1f325126c
commit 740d41ce9f
2 changed files with 11 additions and 2 deletions

View File

@@ -83,6 +83,8 @@ fs::path GetDefaultDataDir();
// The blocks directory is always net specific.
const fs::path &GetBlocksDir();
const fs::path &GetDataDir(bool fNetSpecific = true);
// Return true if -datadir option points to a valid directory or is not specified.
bool CheckDataDirOption();
/** Tests only */
void ClearDatadirCache();
fs::path GetConfigFile(const std::string& confPath);