summaryrefslogtreecommitdiffstats
path: root/xmrstak/misc/executor.cpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-04 22:04:29 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-04 23:03:45 +0200
commite34ce368b559eaad7bf97f7f4ef4fc770e0484c4 (patch)
tree9a433732ad2941cc6cd91c4b0f6347e11133c0c9 /xmrstak/misc/executor.cpp
parent8ee452eefae9be9d467602052131d3c5c9c0afb9 (diff)
downloadxmr-stak-e34ce368b559eaad7bf97f7f4ef4fc770e0484c4.zip
xmr-stak-e34ce368b559eaad7bf97f7f4ef4fc770e0484c4.tar.gz
fix broken nicehash support
- add nicehash flag back to `miner_work`
Diffstat (limited to 'xmrstak/misc/executor.cpp')
-rw-r--r--xmrstak/misc/executor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp
index ce5fbb2..f2bdad4 100644
--- a/xmrstak/misc/executor.cpp
+++ b/xmrstak/misc/executor.cpp
@@ -235,6 +235,7 @@ void executor::on_pool_have_job(size_t pool_id, pool_job& oPoolJob)
xmrstak::miner_work oWork(oPoolJob.sJobID, oPoolJob.bWorkBlob,
oPoolJob.iWorkLen, oPoolJob.iResumeCnt, oPoolJob.iTarget,
+ pool_id != dev_pool_id && ::jconf::inst()->NiceHashMode(),
pool_id);
oWork.iTarget32 = oPoolJob.iTarget32;
@@ -357,7 +358,7 @@ void executor::on_switch_pool(size_t pool_id)
xmrstak::miner_work oWork(oPoolJob.sJobID, oPoolJob.bWorkBlob,
oPoolJob.iWorkLen, oPoolJob.iResumeCnt, oPoolJob.iTarget,
- pool_id);
+ ::jconf::inst()->NiceHashMode(), pool_id);
oWork.iTarget32 = oPoolJob.iTarget32;
OpenPOWER on IntegriCloud