mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Cope with misread sessionid on stratum for now.
This commit is contained in:
parent
b1ae45f782
commit
3dcdb94921
9
util.c
9
util.c
@ -1484,10 +1484,8 @@ resend:
|
|||||||
}
|
}
|
||||||
|
|
||||||
sessionid = json_array_string(json_array_get(res_val, 0), 1);
|
sessionid = json_array_string(json_array_get(res_val, 0), 1);
|
||||||
if (!sessionid) {
|
if (!sessionid)
|
||||||
applog(LOG_INFO, "Failed to get sessionid in initiate_stratum");
|
applog(LOG_DEBUG, "Failed to get sessionid in initiate_stratum");
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
nonce1 = json_array_string(res_val, 1);
|
nonce1 = json_array_string(res_val, 1);
|
||||||
if (!nonce1) {
|
if (!nonce1) {
|
||||||
applog(LOG_INFO, "Failed to get nonce1 in initiate_stratum");
|
applog(LOG_INFO, "Failed to get nonce1 in initiate_stratum");
|
||||||
@ -1509,7 +1507,8 @@ resend:
|
|||||||
pool->n2size = n2size;
|
pool->n2size = n2size;
|
||||||
mutex_unlock(&pool->pool_lock);
|
mutex_unlock(&pool->pool_lock);
|
||||||
|
|
||||||
applog(LOG_DEBUG, "Pool %d stratum session id: %s", pool->pool_no, pool->sessionid);
|
if (sessionid)
|
||||||
|
applog(LOG_DEBUG, "Pool %d stratum session id: %s", pool->pool_no, pool->sessionid);
|
||||||
|
|
||||||
ret = true;
|
ret = true;
|
||||||
out:
|
out:
|
||||||
|
Loading…
Reference in New Issue
Block a user