mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-17 13:03:15 -05:00
Fixed GR algo support
This commit is contained in:
@@ -72,7 +72,7 @@ bool xmrig::AutoClient::parseLogin(const rapidjson::Value &result, int *code)
|
|||||||
|
|
||||||
int64_t xmrig::AutoClient::submit(const JobResult &result)
|
int64_t xmrig::AutoClient::submit(const JobResult &result)
|
||||||
{
|
{
|
||||||
if (result.algorithm.family() != Algorithm::KAWPOW) {
|
if (result.algorithm.family() != Algorithm::KAWPOW || result.algorithm.family() != Algorithm::GHOSTRIDER) {
|
||||||
return Client::submit(result); // NOLINT(bugprone-parent-virtual-call)
|
return Client::submit(result); // NOLINT(bugprone-parent-virtual-call)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ void xmrig::EthStratumClient::parseNotification(const char *method, const rapidj
|
|||||||
|
|
||||||
auto arr = params.GetArray();
|
auto arr = params.GetArray();
|
||||||
|
|
||||||
auto algo = Algorithm(Algorithm::KAWPOW_RVN); //m_pool.algorithm();
|
auto algo = m_pool.algorithm();
|
||||||
if (!algo.isValid()) {
|
if (!algo.isValid()) {
|
||||||
algo = m_pool.coin().algorithm();
|
algo = m_pool.coin().algorithm();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user