aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/util.c b/util.c
index 669dd82..2a52a04 100644
--- a/util.c
+++ b/util.c
@@ -255,3 +255,14 @@ timeval_subtract (
return x->tv_sec < y->tv_sec;
}
+void print_pow(const unsigned char *hash)
+{
+ char *hexstr;
+ unsigned char hash_swap[32];
+
+ swap256(hash_swap, hash);
+ hexstr = bin2hex(hash_swap, 32);
+ fprintf(stderr, "PoW found: %s\n", hexstr);
+ free(hexstr);
+}
+