mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
Moved pool check after config load
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user