diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2019-04-28 19:08:26 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2020-07-11 05:41:12 -0400 |
commit | 9c69cfe4c54e38edd2f54303be2f8a53dcf5bad8 (patch) | |
tree | 3480cdc4b02a6c893b0f756b8a31319351dc6b2c /src/bitcoind.cpp | |
parent | eb682c5700e7a9176d0104d470b83ff9aa3589e8 (diff) |
Add <datadir>/settings.json persistent settings storage.
Persistent settings are used in followup PRs #15936 to unify gui settings
between bitcoin-qt and bitcoind, and #15937 to add a load_on_startup flag to
the loadwallet RPC and maintain a dynamic list of wallets that should be loaded
on startup that also can be shared between bitcoind and bitcoin-qt.
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r-- | src/bitcoind.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 3dcce92ab5..b04cc12059 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -101,6 +101,11 @@ static bool AppInit(int argc, char* argv[]) } } + if (!gArgs.InitSettings(error)) { + InitError(Untranslated(error)); + return false; + } + // -server defaults to true for bitcoind but not for the GUI so do this here gArgs.SoftSetBoolArg("-server", true); // Set this early so that parameter interactions go to console |