Accept any non-false result for mining.authorize
This commit is contained in:
parent
bb4b48bb95
commit
d43247beba
1 changed files with 1 additions and 1 deletions
2
util.c
2
util.c
|
@ -962,7 +962,7 @@ bool stratum_authorize(struct stratum_ctx *sctx, const char *user, const char *p
|
||||||
res_val = json_object_get(val, "result");
|
res_val = json_object_get(val, "result");
|
||||||
err_val = json_object_get(val, "error");
|
err_val = json_object_get(val, "error");
|
||||||
|
|
||||||
if (!res_val || !json_is_true(res_val) ||
|
if (!res_val || json_is_false(res_val) ||
|
||||||
(err_val && !json_is_null(err_val))) {
|
(err_val && !json_is_null(err_val))) {
|
||||||
applog(LOG_ERR, "Stratum authentication failed");
|
applog(LOG_ERR, "Stratum authentication failed");
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue