Merge pull request #1702 from SChernykh/evo
Added missing listener callbacks to EthStratumClient
This commit is contained in:
commit
aa101b6e00
@ -247,6 +247,17 @@ 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) {
|
||||||
|
if (!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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -348,6 +359,7 @@ void EthStratumClient::OnAuthorizeResponse(const rapidjson::Value& result, bool
|
|||||||
LOG_DEBUG("Login succeeded");
|
LOG_DEBUG("Login succeeded");
|
||||||
|
|
||||||
m_authorized = true;
|
m_authorized = true;
|
||||||
|
m_listener->onLoginSuccess(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user