aboutsummaryrefslogtreecommitdiff
path: root/sha256_cryptopp.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2011-02-02 18:47:04 -0500
committerJeff Garzik <jgarzik@redhat.com>2011-02-02 18:47:04 -0500
commitc68ffb30dd17b32f69665af18b72687875770972 (patch)
tree748110c309233117b7f26bd4dc575a2904266aba /sha256_cryptopp.c
parent453101d9e9f8b7408ca645dd174aa3e8af1d87ac (diff)
Display proof-of-work hash when one is discovered
Diffstat (limited to 'sha256_cryptopp.c')
-rw-r--r--sha256_cryptopp.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/sha256_cryptopp.c b/sha256_cryptopp.c
index 1535b6b..4ada480 100644
--- a/sha256_cryptopp.c
+++ b/sha256_cryptopp.c
@@ -110,13 +110,7 @@ bool scanhash_cryptopp(const unsigned char *midstate, unsigned char *data,
stat_ctr++;
if (hash32[7] == 0) {
- char *hexstr;
-
- hexstr = bin2hex(hash, 32);
- fprintf(stderr,
- "DBG: found zeroes in hash:\n%s\n",
- hexstr);
- free(hexstr);
+ print_pow(hash);
*hashes_done = stat_ctr;
return true;
@@ -601,13 +595,7 @@ bool scanhash_asm32(const unsigned char *midstate, unsigned char *data,
stat_ctr++;
if (hash32[7] == 0) {
- char *hexstr;
-
- hexstr = bin2hex(hash, 32);
- fprintf(stderr,
- "DBG: found zeroes in hash:\n%s\n",
- hexstr);
- free(hexstr);
+ print_pow(hash);
*hashes_done = stat_ctr;
return true;