mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +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:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include <interfaces/init.h>
|
||||
#include <node/context.h>
|
||||
#include <util/system.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -14,6 +15,7 @@ class BitcoindInit : public interfaces::Init
|
||||
public:
|
||||
BitcoindInit(NodeContext& node) : m_node(node)
|
||||
{
|
||||
m_node.args = &gArgs;
|
||||
m_node.init = this;
|
||||
}
|
||||
NodeContext& m_node;
|
||||
|
||||
Reference in New Issue
Block a user