diff options
| author | Russell Yanofsky <[email protected]> | 2019-04-28 19:08:26 -0400 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2020-07-11 05:41:12 -0400 |
| commit | 9c69cfe4c54e38edd2f54303be2f8a53dcf5bad8 (patch) | |
| tree | 3480cdc4b02a6c893b0f756b8a31319351dc6b2c /src/bitcoind.cpp | |
| parent | util: Add ReadSettings and WriteSettings functions (diff) | |
| download | discoin-9c69cfe4c54e38edd2f54303be2f8a53dcf5bad8.tar.xz discoin-9c69cfe4c54e38edd2f54303be2f8a53dcf5bad8.zip | |
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 3dcce92ab..b04cc1205 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 |