Browse Source

sha256_4way: patch proper nonce into data block

Jeff Garzik 15 years ago
parent
commit
6288d943ab
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sha256_4way.c

+ 1 - 0
sha256_4way.c

@@ -122,6 +122,7 @@ unsigned int ScanHash_4WaySSE2(unsigned char *pmidstate, unsigned char *pdata,
                 for (i = 0; i < 32/4; i++)
                 for (i = 0; i < 32/4; i++)
                     ((unsigned int*)phash)[i] = thash[i][j];
                     ((unsigned int*)phash)[i] = thash[i][j];
 		*nHashesDone = nonce;
 		*nHashesDone = nonce;
+		*nNonce_p = nonce + j;
                 return nonce + j;
                 return nonce + j;
             }
             }
         }
         }