aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-wallet.cpp
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2023-02-27 14:21:13 -0500
committerRyan Ofsky <ryan@ofsky.org>2023-02-27 14:21:13 -0500
commit9a9d5da11fa6033f82dcf8e2298aee29587f5396 (patch)
treecbc98608c2d6791b8d8b7cf38e9c3ce81a6b2422 /src/bitcoin-wallet.cpp
parentb20b34f5b33230fe253c81008496bd9b13fd6ecf (diff)
downloadbitcoin-9a9d5da11fa6033f82dcf8e2298aee29587f5396.tar.xz
refactor: Stop using gArgs global in system.cpp
Most of the code in util/system.cpp that was hardcoded to use the global ArgsManager instance `gArgs` has been changed to work with explicit ArgsManager instances (for example in https://github.com/bitcoin/bitcoin/pull/20092). But a few hardcoded references to `gArgs` remain. This commit removes the last ones so these functions aren't reading or writing global state.
Diffstat (limited to 'src/bitcoin-wallet.cpp')
-rw-r--r--src/bitcoin-wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-wallet.cpp b/src/bitcoin-wallet.cpp
index 12cb60e6de..fcb845fe64 100644
--- a/src/bitcoin-wallet.cpp
+++ b/src/bitcoin-wallet.cpp
@@ -84,7 +84,7 @@ static std::optional<int> WalletAppInit(ArgsManager& args, int argc, char* argv[
// check for printtoconsole, allow -debug
LogInstance().m_print_to_console = args.GetBoolArg("-printtoconsole", args.GetBoolArg("-debug", false));
- if (!CheckDataDirOption()) {
+ if (!CheckDataDirOption(args)) {
tfm::format(std::cerr, "Error: Specified data directory \"%s\" does not exist.\n", args.GetArg("-datadir", ""));
return EXIT_FAILURE;
}