mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +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:
@@ -347,12 +347,8 @@ static void OnRPCStopped()
|
||||
LogPrint(BCLog::RPC, "RPC stopped.\n");
|
||||
}
|
||||
|
||||
void SetupServerArgs(NodeContext& node)
|
||||
void SetupServerArgs(ArgsManager& argsman)
|
||||
{
|
||||
assert(!node.args);
|
||||
node.args = &gArgs;
|
||||
ArgsManager& argsman = *node.args;
|
||||
|
||||
SetupHelpOptions(argsman);
|
||||
argsman.AddArg("-help-debug", "Print help message with debugging options and exit", ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST); // server-only for now
|
||||
|
||||
|
||||
Reference in New Issue
Block a user