Browse Source

stratum: difficulty can be buggy with values close to zero

bug seen on windows with xpool.ca (x11)
master
Tanguy Pruvot 10 years ago
parent
commit
5a869d1c63
  1. 2
      util.cpp

2
util.cpp

@ -1258,7 +1258,7 @@ static bool stratum_set_difficulty(struct stratum_ctx *sctx, json_t *params) @@ -1258,7 +1258,7 @@ static bool stratum_set_difficulty(struct stratum_ctx *sctx, json_t *params)
double diff;
diff = json_number_value(json_array_get(params, 0));
if (diff == 0)
if (diff <= 0.0)
return false;
pthread_mutex_lock(&sctx->work_lock);

Loading…
Cancel
Save