diff --git a/src/base/kernel/Base.cpp b/src/base/kernel/Base.cpp index f2f36c7b..4de091b0 100644 --- a/src/base/kernel/Base.cpp +++ b/src/base/kernel/Base.cpp @@ -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; } diff --git a/src/core/Controller.cpp b/src/core/Controller.cpp index f38420fd..fd732210 100644 --- a/src/core/Controller.cpp +++ b/src/core/Controller.cpp @@ -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; }