mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-12-01 12:23:57 +01:00
fix broken nicehash support
- add nicehash flag back to `miner_work`
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user