mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-05 16:07:42 +00:00
Expired shares prohibited for cn/wow.
This commit is contained in:
parent
8d316c17f0
commit
4a781cee8b
1 changed files with 6 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue