mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
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.
This commit is contained in:
parent
b20b34f5b3
commit
9a9d5da11f
9 changed files with 22 additions and 20 deletions
|
|
@ -161,7 +161,7 @@ static int AppInitRPC(int argc, char* argv[])
|
|||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
if (!CheckDataDirOption()) {
|
||||
if (!CheckDataDirOption(gArgs)) {
|
||||
tfm::format(std::cerr, "Error: Specified data directory \"%s\" does not exist.\n", gArgs.GetArg("-datadir", ""));
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue