aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-10-05 21:04:08 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-11-05 13:26:43 +0200
commitc3f1821ac788e522e7558e3575150433450dcb8c (patch)
treef8151d24bfca9a789146b4ad4d4909f4532f29c0 /src/util/system.h
parent13d98ea0d76ee55c24e4fb76b962ed696a4b6123 (diff)
Make blockdir always net specific
The blocks directory is net specific by definition. Also this prevents the side effect of calling GetBlocksDir(false) in the non-mainnet environment.
Diffstat (limited to 'src/util/system.h')
-rw-r--r--src/util/system.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/system.h b/src/util/system.h
index 5634b8dd61..dd8868d166 100644
--- a/src/util/system.h
+++ b/src/util/system.h
@@ -78,7 +78,8 @@ void ReleaseDirectoryLocks();
bool TryCreateDirectories(const fs::path& p);
fs::path GetDefaultDataDir();
-const fs::path &GetBlocksDir(bool fNetSpecific = true);
+// The blocks directory is always net specific.
+const fs::path &GetBlocksDir();
const fs::path &GetDataDir(bool fNetSpecific = true);
void ClearDatadirCache();
fs::path GetConfigFile(const std::string& confPath);