diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-07-24 03:21:25 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-07-24 18:43:07 +0300 |
commit | 740d41ce9f7fdf209366e930bd0fdcc6b1bc6b79 (patch) | |
tree | 81316e881a53828af3f4d99afa13c361ebe31f9c /src/util/system.h | |
parent | c1f325126cf51d28dce8da74bfdf5cd05ab237ea (diff) | |
download | bitcoin-740d41ce9f7fdf209366e930bd0fdcc6b1bc6b79.tar.xz |
Add CheckDataDirOption() function
Diffstat (limited to 'src/util/system.h')
-rw-r--r-- | src/util/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/system.h b/src/util/system.h index dda9156488..9ed9f1f0df 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -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); |