mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-05 10:42:04 +00:00
Check that stratum is already active in initiate_stratum to avoid de-authorising ourselves by subscribing again.
This commit is contained in:
parent
fab9ff3cb7
commit
aa6aa29c4d
3
util.c
3
util.c
@ -1170,6 +1170,9 @@ bool initiate_stratum(struct pool *pool)
|
|||||||
json_error_t err;
|
json_error_t err;
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
|
if (pool->stratum_active)
|
||||||
|
return true;
|
||||||
|
|
||||||
s = alloca(RECVSIZE);
|
s = alloca(RECVSIZE);
|
||||||
sprintf(s, "{\"id\": %d, \"method\": \"mining.subscribe\", \"params\": []}", swork_id++);
|
sprintf(s, "{\"id\": %d, \"method\": \"mining.subscribe\", \"params\": []}", swork_id++);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user