Browse Source

remove unnecessary memcpy

The next operation is flipping the merkleroot on the same
destination.

Signed-off-by: Olivier Langlois <olivier@olivierlanglois.net>
Olivier Langlois 12 years ago
parent
commit
c31ff57277
1 changed files with 0 additions and 1 deletions
  1. 0 1
      cgminer.c

+ 0 - 1
cgminer.c

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