1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-06-30 14:22:39 -04:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Tony Butler 7acea34bff Merge 862280f28c into dd782c7001 2024-02-27 22:59:13 -08:00
3 changed files with 10 additions and 8 deletions
-3
View File
@@ -17,9 +17,6 @@ Steps to reproduce the behavior.
A clear and concise description of what you expected to happen. A clear and concise description of what you expected to happen.
**Required data** **Required data**
- XMRig version
- Either the exact link to a release you downloaded from https://github.com/xmrig/xmrig/releases
- Or the exact command lines that you used to build XMRig
- Miner log as text or screenshot - Miner log as text or screenshot
- Config file or command line (without wallets) - Config file or command line (without wallets)
- OS: [e.g. Windows] - OS: [e.g. Windows]
+9 -4
View File
@@ -1,7 +1,7 @@
/* XMRig /* XMRig
* Copyright (c) 2019 jtgrassie <https://github.com/jtgrassie> * Copyright (c) 2019 jtgrassie <https://github.com/jtgrassie>
* Copyright (c) 2018-2024 SChernykh <https://github.com/SChernykh> * Copyright (c) 2018-2023 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2024 XMRig <https://github.com/xmrig>, <support@xmrig.com> * Copyright (c) 2016-2023 XMRig <https://github.com/xmrig>, <support@xmrig.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@@ -609,7 +609,12 @@ bool xmrig::Client::parseLogin(const rapidjson::Value &result, int *code)
parseExtensions(result); parseExtensions(result);
const bool rc = parseJob(Json::getObject(result, "job"), code); if (!result.HasMember("job")) {
*code = 2;
return false;
}
const bool rc = parseJob(result["job"], code);
m_jobs = 0; m_jobs = 0;
return rc; return rc;
@@ -844,7 +849,7 @@ void xmrig::Client::parseResponse(int64_t id, const rapidjson::Value &result, co
m_listener->onLoginSuccess(this); m_listener->onLoginSuccess(this);
if (m_job.isValid()) { if (m_job.isValid()) {
m_listener->onJobReceived(this, m_job, Json::getObject(result, "job")); m_listener->onJobReceived(this, m_job, result["job"]);
} }
return; return;
+1 -1
View File
@@ -63,7 +63,7 @@ xmrig::DonateStrategy::DonateStrategy(Controller *controller, IStrategyListener
keccak(reinterpret_cast<const uint8_t *>(user.data()), user.size(), hash); keccak(reinterpret_cast<const uint8_t *>(user.data()), user.size(), hash);
Cvt::toHex(m_userId, sizeof(m_userId), hash, 32); Cvt::toHex(m_userId, sizeof(m_userId), hash, 32);
# if defined XMRIG_ALGO_KAWPOW || defined XMRIG_ALGO_GHOSTRIDER # ifdef XMRIG_ALGO_KAWPOW
constexpr Pool::Mode mode = Pool::MODE_AUTO_ETH; constexpr Pool::Mode mode = Pool::MODE_AUTO_ETH;
# else # else
constexpr Pool::Mode mode = Pool::MODE_POOL; constexpr Pool::Mode mode = Pool::MODE_POOL;