From 4a781cee8b80ef776237035054a4b68794ac1167 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 12 Feb 2019 03:15:36 +0700 Subject: [PATCH] Expired shares prohibited for cn/wow. --- src/common/net/Client.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/net/Client.cpp b/src/common/net/Client.cpp index b8de4ffe6..36ddba31b 100644 --- a/src/common/net/Client.cpp +++ b/src/common/net/Client.cpp @@ -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 ¶ms, 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()); } }