Commit 6288d943abe9418164da5d5e5dc97e0065e1fa82

Jeff Garzik 2010-11-27T03:50:12

sha256_4way: patch proper nonce into data block

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/sha256_4way.c b/sha256_4way.c
index 3fe3114..f621136 100644
--- a/sha256_4way.c
+++ b/sha256_4way.c
@@ -122,6 +122,7 @@ unsigned int ScanHash_4WaySSE2(unsigned char *pmidstate, unsigned char *pdata,
                 for (i = 0; i < 32/4; i++)
                     ((unsigned int*)phash)[i] = thash[i][j];
 		*nHashesDone = nonce;
+		*nNonce_p = nonce + j;
                 return nonce + j;
             }
         }