Skip to content

Commit

Permalink
Don't abandon the first mining.notify
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Nov 18, 2024
1 parent 708d9cc commit cb435a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/tasks/stratum_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cb435a3

Please sign in to comment.