mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
Put in a hack to prevent dud work from sneaking into test_work_current being seen as a new block.
This commit is contained in:
parent
ad2ed57f12
commit
2cf0767cff
@ -3533,7 +3533,10 @@ static bool test_work_current(struct work *work)
|
|||||||
if (work->mandatory)
|
if (work->mandatory)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
/* Hack to work around dud work sneaking into test */
|
||||||
hexstr = bin2hex(work->data + 8, 18);
|
hexstr = bin2hex(work->data + 8, 18);
|
||||||
|
if (!strncmp(hexstr, "000000000000000000000000000000000000", 36))
|
||||||
|
goto out_free;
|
||||||
|
|
||||||
/* Search to see if this block exists yet and if not, consider it a
|
/* Search to see if this block exists yet and if not, consider it a
|
||||||
* new block and set the current block details to this one */
|
* new block and set the current block details to this one */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user