aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorwillcl-ark <will@256k1.dev>2023-02-09 19:51:41 +0000
committerwillcl-ark <will@256k1.dev>2023-02-23 08:38:35 +0000
commit64c105442ce8c10900ea6fbecdbcfebe42f2d387 (patch)
tree7ff765c3c157883d7d2b4487fd67fd1d0bb9fafe /src/qt/bitcoin.cpp
parent56e370fbb9413260723c598048392219b1055ad0 (diff)
util: make GetDataDir read-only & create datadir..
.. only in bitcoind and bitcoin-qt This changes behaviour of GetConfigFilePath which now always returns the absolute path of the provided -conf argument.
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r--src/qt/bitcoin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 59f433749d..c383c8bd58 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -167,6 +167,7 @@ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTrans
static bool InitSettings()
{
+ gArgs.EnsureDataDir();
if (!gArgs.GetSettingsPath()) {
return true; // Do nothing if settings file disabled.
}