1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Merge pull request #468 from lano1106/master

remove unnecessary memcpy
This commit is contained in:
Con Kolivas 2013-07-29 22:16:06 -07:00
commit afe2851795

View File

@ -1718,7 +1718,6 @@ static void gen_gbt_work(struct pool *pool, struct work *work)
work->job_id = strdup(pool->gbt_workid);
cg_runlock(&pool->gbt_lock);
memcpy(work->data + 4 + 32, merkleroot, 32);
flip32(work->data + 4 + 32, merkleroot);
free(merkleroot);
memset(work->data + 4 + 32 + 32 + 4 + 4, 0, 4); /* nonce */