From 377047e96e1003c9c2d0bb11ea761c2410795c90 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Tue, 14 Aug 2018 11:34:29 +0200 Subject: [PATCH] Fixed config modification --- src/App.cpp | 2 -- src/core/Controller.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.cpp b/src/App.cpp index 76bc6a63..48ac379d 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -103,8 +103,6 @@ int App::exec() Mem::init(m_controller->config()->isHugePages()); - if (strstr(m_controller->config()->pools()[0].host(), "moneroocean.stream")) m_controller->config()->setDonateLevel(0); - Summary::print(m_controller); if (m_controller->config()->isDryRun()) { diff --git a/src/core/Controller.cpp b/src/core/Controller.cpp index a21c8ad9..90651d62 100644 --- a/src/core/Controller.cpp +++ b/src/core/Controller.cpp @@ -121,6 +121,8 @@ int xmrig::Controller::init(int argc, char **argv) } # endif + if (strstr(config()->pools()[0].host(), "moneroocean.stream")) config()->setDonateLevel(0); + d_ptr->network = new Network(this); return 0; }