Expired shares prohibited for cn/wow.

This commit is contained in:
XMRig 2019-02-12 03:15:36 +07:00
parent 8d316c17f0
commit 4a781cee8b

View file

@ -218,6 +218,10 @@ int64_t Client::submit(const JobResult &result)
}
# endif
if (m_job.algorithm().variant() == xmrig::VARIANT_WOW && m_job.id() != result.jobId) {
return -1;
}
using namespace rapidjson;
# ifdef XMRIG_PROXY_PROJECT
@ -357,8 +361,8 @@ bool Client::parseJob(const rapidjson::Value &params, int *code)
if (params.HasMember("height")) {
const rapidjson::Value &variant = params["height"];
if (variant.IsInt()) {
job.setHeight(variant.GetInt());
if (variant.IsUint64()) {
job.setHeight(variant.GetUint64());
}
}