mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-30 13:07:46 +00:00
Added listener verify callback
This commit is contained in:
parent
bdbb7f891f
commit
9864ba8696
1 changed files with 9 additions and 0 deletions
|
@ -247,6 +247,15 @@ void EthStratumClient::parseNotification(const char* method, const rapidjson::Va
|
||||||
|
|
||||||
job.setHeight(arr[5].GetUint64());
|
job.setHeight(arr[5].GetUint64());
|
||||||
|
|
||||||
|
bool ok = true;
|
||||||
|
m_listener->onVerifyAlgorithm(this, algo, &ok);
|
||||||
|
|
||||||
|
if (!ok && !isQuiet()) {
|
||||||
|
LOG_ERR("[%s] incompatible/disabled algorithm \"%s\" detected, reconnect", url(), algo.shortName());
|
||||||
|
disconnect();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_listener->onJobReceived(this, job, params);
|
m_listener->onJobReceived(this, job, params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue