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