mirror of
https://github.com/GOSTSec/ccminer
synced 2025-01-25 14:04:34 +00:00
extranonce: ignore subscribe timeout, not the parse errors
This commit is contained in:
parent
5ddc8de9da
commit
7ce3fed611
7
util.cpp
7
util.cpp
@ -1014,7 +1014,9 @@ start:
|
|||||||
pthread_mutex_unlock(&sctx->work_lock);
|
pthread_mutex_unlock(&sctx->work_lock);
|
||||||
|
|
||||||
// sid is param 1, extranonce params are 2 and 3
|
// sid is param 1, extranonce params are 2 and 3
|
||||||
stratum_parse_extranonce(sctx, res_val, 1);
|
if (!stratum_parse_extranonce(sctx, res_val, 1)) {
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
ret = true;
|
ret = true;
|
||||||
|
|
||||||
@ -1084,7 +1086,8 @@ bool stratum_authorize(struct stratum_ctx *sctx, const char *user, const char *p
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (!socket_full(sctx->sock, 3)) {
|
if (!socket_full(sctx->sock, 3)) {
|
||||||
applog(LOG_ERR, "stratum extranonce subscribe timed out");
|
if (opt_debug)
|
||||||
|
applog(LOG_DEBUG, "stratum extranonce subscribe timed out");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user