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

Commit

Permalink
Bitcoin Gold support
Browse files Browse the repository at this point in the history
  • Loading branch information
kozyilmaz committed Nov 23, 2017
1 parent e0d8a4a commit 7a283a9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nheqminer/patches/008-bitcoingold-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/nheqminer/libstratum/ZcashStratum.cpp b/nheqminer/libstratum/ZcashStratum.cpp
index 7eac719..5bef4da 100644
--- a/nheqminer/libstratum/ZcashStratum.cpp
+++ b/nheqminer/libstratum/ZcashStratum.cpp
@@ -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 == 4 || ret->header.nVersion == 0x20000000) {
if (params.size() < 8) {
throw std::logic_error("Invalid job params");
}

0 comments on commit 7a283a9

Please sign in to comment.