Merge pull request #16 from sebastianst/fix-nonce-position

solver: write nonce to correct position in header
This commit is contained in:
John Tromp 2018-05-10 23:03:07 +02:00 committed by GitHub
commit afdaafe580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ int main(int argc, char **argv) {
}
for (int r = 0; r < range; r++) {
((u32 *)headernonce)[32] = htole32(nonce+r);
((u32 *)headernonce)[27] = htole32(nonce+r);
eq.setheadernonce(headernonce, sizeof(headernonce));
for (int t = 0; t < nthreads; t++) {
threads[t].id = t;