Skip to content

Commit

Permalink
abort work process if BM1397 has returned a invalid job result
Browse files Browse the repository at this point in the history
  • Loading branch information
SatsForFreedom committed Sep 8, 2023
1 parent 1a41c25 commit 8b296d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/bm1397/bm1397.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ task_result *BM1397_proccess_work(void *pvParameters)
if (GLOBAL_STATE->valid_jobs[rx_job_id] == 0)
{
ESP_LOGI(TAG, "Invalid job nonce found, id=%d", rx_job_id);
return NULL;
}

uint32_t rolled_version = GLOBAL_STATE->ASIC_TASK_MODULE.active_jobs[rx_job_id]->version;
Expand Down

0 comments on commit 8b296d6

Please sign in to comment.