aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
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/init.cpp
parent13d98ea0d76ee55c24e4fb76b962ed696a4b6123 (diff)
downloadbitcoin-c3f1821ac788e522e7558e3575150433450dcb8c.tar.xz
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/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 90dfeb3604..070f52caf7 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -906,7 +906,7 @@ bool AppInitParameterInteraction()
// also see: InitParameterInteraction()
- if (!fs::is_directory(GetBlocksDir(false))) {
+ if (!fs::is_directory(GetBlocksDir())) {
return InitError(strprintf(_("Specified blocks directory \"%s\" does not exist."), gArgs.GetArg("-blocksdir", "").c_str()));
}