#2800 Fixed donation with ghostrider algorithm for builds without KawPow algorithm.
This commit is contained in:
parent
dd782c7001
commit
c9b9ef51ee
@ -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-2023 SChernykh <https://github.com/SChernykh>
|
* Copyright (c) 2018-2024 SChernykh <https://github.com/SChernykh>
|
||||||
* Copyright (c) 2016-2023 XMRig <https://github.com/xmrig>, <support@xmrig.com>
|
* Copyright (c) 2016-2024 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,12 +609,7 @@ bool xmrig::Client::parseLogin(const rapidjson::Value &result, int *code)
|
|||||||
|
|
||||||
parseExtensions(result);
|
parseExtensions(result);
|
||||||
|
|
||||||
if (!result.HasMember("job")) {
|
const bool rc = parseJob(Json::getObject(result, "job"), code);
|
||||||
*code = 2;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const bool rc = parseJob(result["job"], code);
|
|
||||||
m_jobs = 0;
|
m_jobs = 0;
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
@ -849,7 +844,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, result["job"]);
|
m_listener->onJobReceived(this, m_job, Json::getObject(result, "job"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
# ifdef XMRIG_ALGO_KAWPOW
|
# if defined XMRIG_ALGO_KAWPOW || defined XMRIG_ALGO_GHOSTRIDER
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user