Browse Source

Stratum: Clear unused extranonce2 space

Luke Dashjr 12 years ago
parent
commit
f7e0d799d2
1 changed files with 0 additions and 2 deletions
  1. 0 2
      miner.c

+ 0 - 2
miner.c

@@ -7177,10 +7177,8 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
 
 	/* Generate coinbase */
 	bytes_resize(&work->nonce2, pool->n2size);
-#ifndef __OPTIMIZE__
 	if (pool->nonce2sz < pool->n2size)
 		memset(&bytes_buf(&work->nonce2)[pool->nonce2sz], 0, pool->n2size - pool->nonce2sz);
-#endif
 	memcpy(bytes_buf(&work->nonce2),
 #ifdef WORDS_BIGENDIAN
 	// NOTE: On big endian, the most significant bits are stored at the end, so skip the LSBs