mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Make gArgs aware of the arguments
gArgs knows what the available arguments are and their help. Getting the help message is moved to gArgs and HelpMessage() is removed
This commit is contained in:
@@ -83,7 +83,7 @@ class NodeImpl : public Node
|
||||
StopMapPort();
|
||||
}
|
||||
}
|
||||
std::string helpMessage(HelpMessageMode mode) override { return HelpMessage(mode); }
|
||||
void setupServerArgs() override { return SetupServerArgs(); }
|
||||
bool getProxy(Network net, proxyType& proxy_info) override { return GetProxy(net, proxy_info); }
|
||||
size_t getNodeCount(CConnman::NumConnections flags) override
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
#include <addrdb.h> // For banmap_t
|
||||
#include <amount.h> // For CAmount
|
||||
#include <init.h> // For HelpMessageMode
|
||||
#include <net.h> // For CConnman::NumConnections
|
||||
#include <netaddress.h> // For Network
|
||||
|
||||
@@ -83,8 +82,8 @@ public:
|
||||
//! Return whether shutdown was requested.
|
||||
virtual bool shutdownRequested() = 0;
|
||||
|
||||
//! Get help message string.
|
||||
virtual std::string helpMessage(HelpMessageMode mode) = 0;
|
||||
//! Setup arguments
|
||||
virtual void setupServerArgs() = 0;
|
||||
|
||||
//! Map port.
|
||||
virtual void mapPort(bool use_upnp) = 0;
|
||||
|
||||
Reference in New Issue
Block a user