Make SetupServerArgs callable without NodeContext

bitcoin-gui code needs to call SetupServerArgs but will not have a
NodeContext object if it is communicating with an external bitcoin-node
process.
This commit is contained in:
Russell Yanofsky committed 2021-06-10 09:58:45 -05:00
1 parent 1704bbf226
commit 493fb47c57
7 files changed
+10 -9

No files matched your search

+1 -1
View File
@@ -490,7 +490,7 @@ int GuiMain(int argc, char* argv[])
/// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
// Command-line options take precedence:
SetupServerArgs(node_context);
SetupServerArgs(gArgs);
SetupUIArgs(gArgs);
std::string error;
if (!gArgs.ParseParameters(argc, argv, error)) {