mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 16:05:05 -05:00
Fixed initialization, no need init logs and network if configuration not ready.
This commit is contained in:
@@ -57,7 +57,6 @@ public:
|
||||
inline bool background() const { return m_background; }
|
||||
inline bool colors() const { return m_colors; }
|
||||
inline bool doubleHash() const { return m_doubleHash; }
|
||||
inline bool isReady() const { return m_ready; }
|
||||
inline bool syslog() const { return m_syslog; }
|
||||
inline const char *logFile() const { return m_logFile; }
|
||||
inline const std::vector<Url*> &pools() const { return m_pools; }
|
||||
@@ -76,6 +75,8 @@ private:
|
||||
Options(int argc, char **argv);
|
||||
~Options();
|
||||
|
||||
inline bool isReady() const { return m_ready; }
|
||||
|
||||
static Options *m_self;
|
||||
|
||||
bool parseArg(int key, const char *arg);
|
||||
|
||||
Reference in New Issue
Block a user