mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-01 16:52:18 +00:00
Provide rudimentary support for stratum clean work command in the stratum thread.
This commit is contained in:
parent
04551445f6
commit
54ab28fd6e
@ -3993,6 +3993,11 @@ static void *stratum_thread(void *userdata)
|
|||||||
if (!parse_stratum(pool, s)) /* Create message queues here */
|
if (!parse_stratum(pool, s)) /* Create message queues here */
|
||||||
applog(LOG_INFO, "Unknown stratum msg: %s", s);
|
applog(LOG_INFO, "Unknown stratum msg: %s", s);
|
||||||
free(s);
|
free(s);
|
||||||
|
if (unlikely(pool->swork.clean)) {
|
||||||
|
pool->swork.clean = false;
|
||||||
|
applog(LOG_NOTICE, "Stratum requested work restart for block change");
|
||||||
|
restart_threads();
|
||||||
|
}
|
||||||
|
|
||||||
if (unlikely(pool->removed)) {
|
if (unlikely(pool->removed)) {
|
||||||
CLOSESOCKET(pool->sock);
|
CLOSESOCKET(pool->sock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user