mirror of
https://github.com/GOSTSec/ccminer
synced 2025-08-26 22:02:08 +00:00
blake: fix of bad difficulty
This commit is contained in:
parent
69616b37ac
commit
124ddee2fe
@ -835,7 +835,7 @@ static void stratum_gen_work(struct stratum_ctx *sctx, struct work *work)
|
|||||||
else if (opt_algo == ALGO_FUGUE256 || opt_algo == ALGO_GROESTL || opt_algo == ALGO_DMD_GR || opt_algo == ALGO_FRESH)
|
else if (opt_algo == ALGO_FUGUE256 || opt_algo == ALGO_GROESTL || opt_algo == ALGO_DMD_GR || opt_algo == ALGO_FRESH)
|
||||||
diff_to_target(work->target, sctx->job.diff / (256.0 * opt_difficulty));
|
diff_to_target(work->target, sctx->job.diff / (256.0 * opt_difficulty));
|
||||||
else if (opt_algo == ALGO_BLAKE)
|
else if (opt_algo == ALGO_BLAKE)
|
||||||
diff_to_target(work->target, sctx->job.diff / (16.0 * opt_difficulty));
|
diff_to_target(work->target, sctx->job.diff / (2.0 * opt_difficulty));
|
||||||
else
|
else
|
||||||
diff_to_target(work->target, sctx->job.diff / opt_difficulty);
|
diff_to_target(work->target, sctx->job.diff / opt_difficulty);
|
||||||
}
|
}
|
||||||
@ -945,7 +945,7 @@ static void *miner_thread(void *userdata)
|
|||||||
if (end_nonce < (umax64 + (*nonceptr)))
|
if (end_nonce < (umax64 + (*nonceptr)))
|
||||||
max_nonce = end_nonce;
|
max_nonce = end_nonce;
|
||||||
else
|
else
|
||||||
max_nonce = umax64 + (*nonceptr);
|
max_nonce = (uint32_t) umax64 + (*nonceptr);
|
||||||
|
|
||||||
/* do not recompute something already scanned (and sent) ! */
|
/* do not recompute something already scanned (and sent) ! */
|
||||||
if (hashlog_already_submittted(work.job_id, 0)) {
|
if (hashlog_already_submittted(work.job_id, 0)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user