Browse Source

Merge commit 'f50ae46' into cg_merges_20130524b

Luke Dashjr 13 years ago
parent
commit
de24336430
1 changed files with 1 additions and 2 deletions
  1. 1 2
      miner.c

+ 1 - 2
miner.c

@@ -6742,8 +6742,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
 	}
 	data32 = (uint32_t *)merkle_sha;
 	swap32 = (uint32_t *)merkle_root;
-	for (i = 0; i < 32 / 4; i++)
-		swap32[i] = swab32(data32[i]);
+	flip32(swap32, data32);
 	merkle_hash = bin2hex((const unsigned char *)merkle_root, 32);
 
 	header = calloc(pool->swork.header_len, 1);