mirror of
https://github.com/GOSTSec/ccminer
synced 2025-02-10 22:04:21 +00:00
stratum: difficulty can be buggy with values close to zero
bug seen on windows with xpool.ca (x11)
This commit is contained in:
parent
2ea9da1415
commit
5a869d1c63
2
util.cpp
2
util.cpp
@ -1258,7 +1258,7 @@ static bool stratum_set_difficulty(struct stratum_ctx *sctx, json_t *params)
|
|||||||
double diff;
|
double diff;
|
||||||
|
|
||||||
diff = json_number_value(json_array_get(params, 0));
|
diff = json_number_value(json_array_get(params, 0));
|
||||||
if (diff == 0)
|
if (diff <= 0.0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
pthread_mutex_lock(&sctx->work_lock);
|
pthread_mutex_lock(&sctx->work_lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user