mirror of
https://github.com/xmrig/xmrig.git
synced 2025-03-12 09:37:35 +00:00
KawPow: fixed switch back from dev donate
This commit is contained in:
parent
4edcaa03be
commit
77a7f144c0
1 changed files with 12 additions and 2 deletions
|
@ -84,6 +84,7 @@ int64_t EthStratumClient::submit(const JobResult& result)
|
|||
# endif
|
||||
|
||||
if (result.diff == 0) {
|
||||
LOG_ERR("result.diff is 0");
|
||||
disconnect();
|
||||
return -1;
|
||||
}
|
||||
|
@ -258,7 +259,16 @@ void EthStratumClient::parseNotification(const char* method, const rapidjson::Va
|
|||
return;
|
||||
}
|
||||
|
||||
m_listener->onJobReceived(this, job, params);
|
||||
if (m_job != job) {
|
||||
m_job = std::move(job);
|
||||
m_listener->onJobReceived(this, m_job, params);
|
||||
}
|
||||
else {
|
||||
if (!isQuiet()) {
|
||||
LOG_WARN("[%s] duplicate job received, reconnect", url());
|
||||
}
|
||||
disconnect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -339,13 +349,13 @@ void EthStratumClient::OnSubscribeResponse(const rapidjson::Value& result, bool
|
|||
void EthStratumClient::OnAuthorizeResponse(const rapidjson::Value& result, bool success, uint64_t elapsed)
|
||||
{
|
||||
if (!success) {
|
||||
LOG_ERR("mining.authorize call failed");
|
||||
disconnect();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!result.IsBool()) {
|
||||
LOG_ERR("Invalid mining.authorize response: result is not a boolean");
|
||||
|
||||
disconnect();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue