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()); } }