mirror of
https://github.com/xmrig/xmrig.git
synced 2026-02-01 17:53:03 -05:00
Cleanup MoneroOcean patchset
This commit is contained in:
@@ -318,7 +318,7 @@ void xmrig::JobResults::done(const Job &job)
|
||||
|
||||
void xmrig::JobResults::setListener(IJobResultListener *listener, bool hwAES)
|
||||
{
|
||||
//assert(handler == nullptr);
|
||||
assert(handler == nullptr);
|
||||
|
||||
handler = new JobResultsPrivate(listener, hwAES);
|
||||
}
|
||||
|
||||
@@ -175,13 +175,17 @@ void xmrig::Network::onLogin(IStrategy *, IClient *client, rapidjson::Document &
|
||||
|
||||
params.AddMember("algo", algo, allocator);
|
||||
|
||||
Value algo_perf(kObjectType);
|
||||
# ifdef XMRIG_FEATURE_BENCHMARK
|
||||
if (strstr(client->pool().host(), "moneroocean.stream")) {
|
||||
Value algo_perf(kObjectType);
|
||||
|
||||
for (const auto &a : algorithms) {
|
||||
algo_perf.AddMember(StringRef(a.shortName()), m_controller->config()->benchmark().algo_perf[a.id()], 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);
|
||||
}
|
||||
|
||||
params.AddMember("algo-perf", algo_perf, allocator);
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user