From be3388b5eaef864ecd868c539508b8c25570c40d Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Sat, 4 Jul 2020 22:45:10 -0700 Subject: [PATCH] Alloy algo-perf for non moneroocean.stream pools --- src/core/Benchmark.cpp | 2 +- src/core/Benchmark.h | 2 +- src/net/Network.cpp | 12 +++++------- src/version.h | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/core/Benchmark.cpp b/src/core/Benchmark.cpp index 264322a9..7490c2cf 100644 --- a/src/core/Benchmark.cpp +++ b/src/core/Benchmark.cpp @@ -1,5 +1,5 @@ /* XMRig - * Copyright 2018-2019 MoneroOcean , + * Copyright 2018-2020 MoneroOcean , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/core/Benchmark.h b/src/core/Benchmark.h index 2a907e03..53effd69 100644 --- a/src/core/Benchmark.h +++ b/src/core/Benchmark.h @@ -1,5 +1,5 @@ /* XMRig - * Copyright 2018-2019 MoneroOcean , + * Copyright 2018-20120 MoneroOcean , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/net/Network.cpp b/src/net/Network.cpp index 2b4e953e..fd85650f 100644 --- a/src/net/Network.cpp +++ b/src/net/Network.cpp @@ -176,15 +176,13 @@ void xmrig::Network::onLogin(IStrategy *, IClient *client, rapidjson::Document & params.AddMember("algo", algo, allocator); # ifdef XMRIG_FEATURE_BENCHMARK - if (strstr(client->pool().host(), "moneroocean.stream")) { - Value algo_perf(kObjectType); + Value algo_perf(kObjectType); - for (const auto &a : algorithms) { - algo_perf.AddMember(StringRef(a.shortName()), m_controller->config()->benchmark().algo_perf[a.id()], allocator); - } - - params.AddMember("algo-perf", algo_perf, allocator); + for (const auto &a : algorithms) { + algo_perf.AddMember(StringRef(a.shortName()), m_controller->config()->benchmark().algo_perf[a.id()], allocator); } + + params.AddMember("algo-perf", algo_perf, allocator); # endif } diff --git a/src/version.h b/src/version.h index a14c7f6f..8f622676 100644 --- a/src/version.h +++ b/src/version.h @@ -28,7 +28,7 @@ #define APP_ID "xmrig" #define APP_NAME "XMRig" #define APP_DESC "XMRig miner" -#define APP_VERSION "6.2.2-mo1" +#define APP_VERSION "6.2.2-mo2" #define APP_DOMAIN "xmrig.com" #define APP_SITE "www.xmrig.com" #define APP_COPYRIGHT "Copyright (C) 2016-2020 xmrig.com"