aboutsummaryrefslogtreecommitdiff
path: root/sha256_generic.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_generic.c
parent453101d9e9f8b7408ca645dd174aa3e8af1d87ac (diff)
Display proof-of-work hash when one is discovered
Diffstat (limited to 'sha256_generic.c')
-rw-r--r--sha256_generic.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sha256_generic.c b/sha256_generic.c
index 8817d92..91fbbcf 100644
--- a/sha256_generic.c
+++ b/sha256_generic.c
@@ -256,13 +256,7 @@ bool scanhash_c(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;