1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-24 13:32:46 -05:00

Correct call of setZeroDonateLevel

This commit is contained in:
MoneroOcean
2019-06-18 11:49:59 -07:00
parent 5c0e89241f
commit a8376bb512
2 changed files with 2 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ public:
Api *api() const;
bool reload(const rapidjson::Value &json);
Config *config() const;
inline void setZeroDonateLevel() { d_ptr->config->setZeroDonateLevel(); }
void addListener(IBaseListener *listener);
protected:

View File

@@ -62,7 +62,7 @@ int xmrig::Controller::init()
return rc;
}
if (strstr(config()->pools().data()[0].host(), "moneroocean.stream")) config().setZeroDonateLevel();
if (strstr(config()->pools().data()[0].host(), "moneroocean.stream")) setZeroDonateLevel();
m_network = new Network(this);
return 0;