1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00

Bugfix: Initialize temporary stratum work

Without this, work.mandatory might have been true skipping block change handling code
This caused newfound shares to be considered stale always, and bitforce devices to constantly restart work
This commit is contained in:
Luke Dashjr 2012-10-29 07:14:29 +00:00
parent 90b1893746
commit 280486a748

View File

@ -4150,6 +4150,7 @@ static void *stratum_thread(void *userdata)
free(s);
if (pool->swork.clean) {
struct work work;
memset(&work, 0, sizeof(work));
/* Generate a single work item to update the current
* block database */