diff options
| author | Hennadii Stepanov <[email protected]> | 2018-10-05 21:04:08 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2018-11-05 13:26:43 +0200 |
| commit | c3f1821ac788e522e7558e3575150433450dcb8c (patch) | |
| tree | f8151d24bfca9a789146b4ad4d4909f4532f29c0 /src/util/system.h | |
| parent | Merge #14647: build: Remove illegal spacing in darwin.mk (diff) | |
| download | discoin-c3f1821ac788e522e7558e3575150433450dcb8c.tar.xz discoin-c3f1821ac788e522e7558e3575150433450dcb8c.zip | |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/system.h b/src/util/system.h index 5634b8dd6..dd8868d16 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); |