Move verbose proof-of-work/target comparison display into -D (debug)
This commit is contained in:
parent
98de751416
commit
51eb1b4ef9
1 changed files with 11 additions and 9 deletions
2
util.c
2
util.c
|
@ -283,6 +283,7 @@ bool fulltest(const unsigned char *hash, const unsigned char *target)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (opt_debug) {
|
||||||
hash_str = bin2hex(hash_swap, 32);
|
hash_str = bin2hex(hash_swap, 32);
|
||||||
target_str = bin2hex(target_swap, 32);
|
target_str = bin2hex(target_swap, 32);
|
||||||
|
|
||||||
|
@ -294,6 +295,7 @@ bool fulltest(const unsigned char *hash, const unsigned char *target)
|
||||||
|
|
||||||
free(hash_str);
|
free(hash_str);
|
||||||
free(target_str);
|
free(target_str);
|
||||||
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue