Browse Source

Expand extranonce2 size to 64-bit

It's rather unlikely to overflow a 32-bit extranonce2 (requires over 4 Gh performed on CPU; with a 1 minute time between jobs, that's over 50 Mh/s), but it doesn't hurt much
Luke Dashjr 11 years ago
parent
commit
34fa10c47d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.h

+ 1 - 1
miner.h

@@ -1250,7 +1250,7 @@ struct pool {
 	char *sockaddr_url; /* stripped url used for sockaddr */
 	char *nonce1;
 	size_t n1_len;
-	uint32_t nonce2;
+	uint64_t nonce2;
 	int nonce2sz;
 #ifdef WORDS_BIGENDIAN
 	int nonce2off;