diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-10-04 22:04:29 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-10-04 23:03:45 +0200 |
commit | e34ce368b559eaad7bf97f7f4ef4fc770e0484c4 (patch) | |
tree | 9a433732ad2941cc6cd91c4b0f6347e11133c0c9 /xmrstak/backend/miner_work.hpp | |
parent | 8ee452eefae9be9d467602052131d3c5c9c0afb9 (diff) | |
download | xmr-stak-e34ce368b559eaad7bf97f7f4ef4fc770e0484c4.zip xmr-stak-e34ce368b559eaad7bf97f7f4ef4fc770e0484c4.tar.gz |
fix broken nicehash support
- add nicehash flag back to `miner_work`
Diffstat (limited to 'xmrstak/backend/miner_work.hpp')
-rw-r--r-- | xmrstak/backend/miner_work.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmrstak/backend/miner_work.hpp b/xmrstak/backend/miner_work.hpp index e9f9e07..aecbd70 100644 --- a/xmrstak/backend/miner_work.hpp +++ b/xmrstak/backend/miner_work.hpp @@ -26,8 +26,8 @@ namespace xmrstak miner_work() : iWorkSize(0), bNiceHash(false), bStall(true), iPoolId(0) { } miner_work(const char* sJobID, const uint8_t* bWork, uint32_t iWorkSize, uint32_t iResumeCnt, - uint64_t iTarget, size_t iPoolId) : iWorkSize(iWorkSize), iResumeCnt(iResumeCnt), - iTarget(iTarget), bNiceHash(false), bStall(false), iPoolId(iPoolId) + uint64_t iTarget, bool bNiceHash, size_t iPoolId) : iWorkSize(iWorkSize), iResumeCnt(iResumeCnt), + iTarget(iTarget), bNiceHash(bNiceHash), bStall(false), iPoolId(iPoolId) { assert(iWorkSize <= sizeof(bWorkBlob)); memcpy(this->sJobID, sJobID, sizeof(miner_work::sJobID)); |