Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Fix for zclassic's soft fork #257

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nheqminer/libstratum/ZcashStratum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ ZcashJob* ZcashMiner::parseJob(const Array& params)
// TODO: On a LE host shouldn't this be le32toh?
ret->header.nVersion = be32toh(version);

if (ret->header.nVersion == 4) {
// if (ret->header.nVersion > 29) { //BIP 9
if (params.size() < 8) {
throw std::logic_error("Invalid job params");
}
Expand All @@ -516,9 +516,9 @@ ZcashJob* ZcashMiner::parseJob(const Array& params)

ret->time = params[5].get_str();
ret->clean = params[7].get_bool();
} else {
/*} else {
throw std::logic_error("ZcashMiner::parseJob(): Invalid or unsupported block header version");
}
} */

ret->header.nNonce = nonce1;
ret->nonce1Size = nonce1Size;
Expand Down