1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Check the current block description hasn't been blanked pending the real new current block data.

This commit is contained in:
Con Kolivas 2011-07-16 10:28:59 +10:00
parent 18af4e6272
commit 8203cc67eb

5
main.c
View File

@ -875,10 +875,13 @@ static bool stale_work(struct work *work)
bool ret = false; bool ret = false;
char *hexstr; char *hexstr;
if (!strncmp(blank, current_block, 36))
return ret;
hexstr = bin2hex(work->data, 36); hexstr = bin2hex(work->data, 36);
if (unlikely(!hexstr)) { if (unlikely(!hexstr)) {
applog(LOG_ERR, "submit_work_thread OOM"); applog(LOG_ERR, "submit_work_thread OOM");
return false; return ret;
} }
if (strncmp(hexstr, current_block, 36)) if (strncmp(hexstr, current_block, 36))