From 26d7f1913fc1c7cbbaf5c5f43205e5b7da6e440f Mon Sep 17 00:00:00 2001 From: Erik Olof Gunnar Andersson Date: Wed, 20 Nov 2024 13:20:42 +0100 Subject: [PATCH] Move back to static extranonce_2 --- main/tasks/create_jobs_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/tasks/create_jobs_task.c b/main/tasks/create_jobs_task.c index 6f9402b21..2af8ac747 100644 --- a/main/tasks/create_jobs_task.c +++ b/main/tasks/create_jobs_task.c @@ -14,6 +14,7 @@ static const char *TAG = "create_jobs_task"; #define TASK_YIELD_THRESHOLD 100 // Yield after this many iterations #define QUEUE_LOW_WATER_MARK 10 // Adjust based on your requirements +static uint32_t extranonce_2 = 0; static bool should_generate_more_work(GlobalState *GLOBAL_STATE); static void generate_work(GlobalState *GLOBAL_STATE, mining_notify *notification, uint32_t extranonce_2); @@ -36,7 +37,6 @@ void create_jobs_task(void *pvParameters) } ESP_LOGI(TAG, "New Work Dequeued %s", mining_notification->job_id); - uint32_t extranonce_2 = 0; while (GLOBAL_STATE->stratum_queue.count < 1 && GLOBAL_STATE->abandon_work == 0) { if (should_generate_more_work(GLOBAL_STATE))