Moved pool check after config load
This commit is contained in:
parent
53451615e6
commit
ca7951c90f
3 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue