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