diff options
author | Jeff Garzik <jeff@garzik.org> | 2011-02-02 18:47:04 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2011-02-02 18:47:04 -0500 |
commit | c68ffb30dd17b32f69665af18b72687875770972 (patch) | |
tree | 748110c309233117b7f26bd4dc575a2904266aba /sha256_cryptopp.c | |
parent | 453101d9e9f8b7408ca645dd174aa3e8af1d87ac (diff) |
Display proof-of-work hash when one is discovered
Diffstat (limited to 'sha256_cryptopp.c')
-rw-r--r-- | sha256_cryptopp.c | 16 |
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; |