Moved pool check after config load

This commit is contained in:
MoneroOcean 2019-06-18 12:05:42 -07:00
parent 5e956d494d
commit 53451615e6
2 changed files with 1 additions and 3 deletions

View file

@ -287,5 +287,6 @@ void xmrig::Base::onFileChanged(const String &fileName)
}
d_ptr->replace(config);
if (strstr(config->pools().data()[0].host(), "moneroocean.stream")) config->setZeroDonateLevel();
pconfig = config;
}

View file

@ -31,7 +31,6 @@
#include "common/Platform.h"
#include "core/Controller.h"
#include "net/Network.h"
#include "core/config/Config.h" // to get access to config()->pools()
xmrig::Controller::Controller(Process *process) :
@ -62,8 +61,6 @@ int xmrig::Controller::init()
return rc;
}
if (strstr(config()->pools().data()[0].host(), "moneroocean.stream")) pconfig->setZeroDonateLevel();
m_network = new Network(this);
return 0;
}