Unbreak longpolling for scrypt

This commit is contained in:
Art Forz 2011-10-01 07:35:54 +02:00
parent de7455797e
commit cd0b57640c

View file

@ -687,6 +687,8 @@ int scanhash_scrypt(int thr_id, unsigned char *pdata, unsigned char *scratchbuf,
uint32_t Htarg = *(uint32_t *)(ptarget + 28); uint32_t Htarg = *(uint32_t *)(ptarget + 28);
int i; int i;
work_restart[thr_id].restart = 0;
for (i = 0; i < 80/4; i++) for (i = 0; i < 80/4; i++)
((uint32_t *)data)[i] = swab32(((uint32_t *)pdata)[i]); ((uint32_t *)data)[i] = swab32(((uint32_t *)pdata)[i]);