Skip to content

Commit

Permalink
Fixes in bitcoin from the klaus-t fork
Browse files Browse the repository at this point in the history
  • Loading branch information
sp-hash committed Feb 2, 2015
1 parent 8fa416f commit 5969ff9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions bitcoin.cu
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ void bitcoin_hash(uint32_t *output, const uint32_t *data, uint32_t nonce, const
b = a;
a = t1 + t2;
}
output[0] = a + hc[0];
output[1] = b + hc[1];
output[2] = c + hc[2];
output[3] = d + hc[3];
output[4] = e + hc[4];
output[5] = f + hc[5];
output[6] = g + hc[6];
output[7] = h + hc[7];
be32enc(&output[0], a + hc[0]);
be32enc(&output[1], b + hc[1]);
be32enc(&output[2], c + hc[2]);
be32enc(&output[3], d + hc[3]);
be32enc(&output[4], e + hc[4]);
be32enc(&output[5], f + hc[5]);
be32enc(&output[6], g + hc[6]);
be32enc(&output[7], h + hc[7]);
}

static bool init[MAX_GPUS] = { 0 };
Expand Down
3 changes: 2 additions & 1 deletion ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ Usage: " PROGRAM_NAME " [OPTIONS]\n\
Options:\n\
-a, --algo=ALGO specify the hash algorithm to use\n\
anime Animecoin\n\
bitcoin use to mine Bitcoin\n\
blake Blake 256 (SFR/NEOS)\n\
blakecoin Fast Blake 256 (8 rounds)\n\
deep Deepcoin\n\
Expand Down Expand Up @@ -438,7 +439,7 @@ void proper_exit(int reason)

try
{
sleep(10); //make sure that the gpu threads are stopped when updating the stats.
sleep(1); //make sure that the gpu threads are stopped when updating the stats.
exit(0);
}
catch (...)
Expand Down

0 comments on commit 5969ff9

Please sign in to comment.