Skip to content

Commit

Permalink
Move back to static extranonce_2
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Nov 20, 2024
1 parent e2cad32 commit 26d7f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/tasks/create_jobs_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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))
Expand Down

0 comments on commit 26d7f19

Please sign in to comment.