Print an error message if mining.subscribe fails
This commit is contained in:
parent
dd774a337e
commit
d5e5505b19
1 changed files with 3 additions and 1 deletions
4
util.c
4
util.c
|
@ -851,8 +851,10 @@ start:
|
||||||
else
|
else
|
||||||
sprintf(s, "{\"id\": 1, \"method\": \"mining.subscribe\", \"params\": [\"" USER_AGENT "\"]}");
|
sprintf(s, "{\"id\": 1, \"method\": \"mining.subscribe\", \"params\": [\"" USER_AGENT "\"]}");
|
||||||
|
|
||||||
if (!stratum_send_line(sctx, s))
|
if (!stratum_send_line(sctx, s)) {
|
||||||
|
applog(LOG_ERR, "stratum_subscribe send failed");
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (!socket_full(sctx->sock, 30)) {
|
if (!socket_full(sctx->sock, 30)) {
|
||||||
applog(LOG_ERR, "stratum_subscribe timed out");
|
applog(LOG_ERR, "stratum_subscribe timed out");
|
||||||
|
|
Loading…
Reference in a new issue