From d22b95647d0f6778079219224b12ff983cecc3b9 Mon Sep 17 00:00:00 2001 From: Erik Olof Gunnar Andersson Date: Wed, 20 Nov 2024 16:14:33 +0100 Subject: [PATCH] Don't abandon the first mining.notify (#492) --- main/tasks/stratum_task.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/tasks/stratum_task.c b/main/tasks/stratum_task.c index 94d47bd8e..430b6c13b 100644 --- a/main/tasks/stratum_task.c +++ b/main/tasks/stratum_task.c @@ -253,6 +253,9 @@ void stratum_task(void * pvParameters) //mining.suggest_difficulty - ID: 4 STRATUM_V1_suggest_difficulty(GLOBAL_STATE->sock, STRATUM_DIFFICULTY); + // Everything is set up, lets make sure we don't abandon work unnecessarily. + GLOBAL_STATE->abandon_work = 0; + while (1) { char * line = STRATUM_V1_receive_jsonrpc_line(GLOBAL_STATE->sock); if (!line) {