mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-23 06:52:33 -05:00
Small fixes.
This commit is contained in:
@@ -56,6 +56,8 @@ xmrig::CommonConfig::CommonConfig() :
|
||||
m_apiRestricted(true),
|
||||
m_background(false),
|
||||
m_colors(true),
|
||||
m_syslog(false),
|
||||
m_watch(false), // TODO: enable config file watch by default when this feature propertly handled and tested.
|
||||
m_apiToken(nullptr),
|
||||
m_apiWorkerId(nullptr),
|
||||
m_fileName(nullptr),
|
||||
|
||||
@@ -79,6 +79,12 @@ xmrig::Controller::~Controller()
|
||||
}
|
||||
|
||||
|
||||
bool xmrig::Controller::isReady() const
|
||||
{
|
||||
return d_ptr->config && d_ptr->network;
|
||||
}
|
||||
|
||||
|
||||
xmrig::Config *xmrig::Controller::config() const
|
||||
{
|
||||
assert(d_ptr->config != nullptr);
|
||||
|
||||
@@ -46,6 +46,7 @@ public:
|
||||
Controller();
|
||||
~Controller();
|
||||
|
||||
bool isReady() const;
|
||||
Config *config() const;
|
||||
int init(int argc, char **argv);
|
||||
Network *network() const;
|
||||
|
||||
Reference in New Issue
Block a user