mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
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:
@@ -112,8 +112,8 @@ static bool AppInit(NodeContext& node, int argc, char* argv[])
|
||||
util::ThreadSetInternalName("init");
|
||||
|
||||
// If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's main()
|
||||
SetupServerArgs(node);
|
||||
ArgsManager& args = *Assert(node.args);
|
||||
SetupServerArgs(args);
|
||||
std::string error;
|
||||
if (!args.ParseParameters(argc, argv, error)) {
|
||||
return InitError(Untranslated(strprintf("Error parsing command line arguments: %s\n", error)));
|
||||
|
||||
Reference in New Issue
Block a user