mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-09 08:42:40 -05:00
Moved pool check after config load
This commit is contained in:
@@ -287,6 +287,4 @@ void xmrig::Base::onFileChanged(const String &fileName)
|
||||
}
|
||||
|
||||
d_ptr->replace(config);
|
||||
if (strstr(config->pools().data()[0].host(), "moneroocean.stream")) config->setZeroDonateLevel();
|
||||
pconfig = config;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,6 @@ public:
|
||||
inline const char *userAgent() const { return m_userAgent.data(); }
|
||||
inline const Http &http() const { return m_http; }
|
||||
inline const Pools &pools() const { return m_pools; }
|
||||
inline void setZeroDonateLevel() { m_pools.setZeroDonateLevel(); }
|
||||
inline const String &apiId() const { return m_apiId; }
|
||||
inline const String &apiWorkerId() const { return m_apiWorkerId; }
|
||||
inline uint32_t printTime() const { return m_printTime; }
|
||||
|
||||
@@ -87,6 +87,9 @@ bool xmrig::Config::read(const IJsonReader &reader, const char *fileName)
|
||||
setAssembly(reader.getValue("asm"));
|
||||
# endif
|
||||
|
||||
if (strstr(pools().data()[0].host(), "moneroocean.stream")) m_pools.setZeroDonateLevel();
|
||||
pconfig = this;
|
||||
|
||||
return finalize();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user