From 872200077e17070381b9477de5b5c89eae451f2e Mon Sep 17 00:00:00 2001 From: Erik Olof Gunnar Andersson Date: Mon, 18 Nov 2024 17:22:36 +0100 Subject: [PATCH] Don't abandon the first mining.notify --- 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..5f39c53c9 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 any unnecessary work. + GLOBAL_STATE->abandon_work = 0; + while (1) { char * line = STRATUM_V1_receive_jsonrpc_line(GLOBAL_STATE->sock); if (!line) {