Browse Source

Move verbose proof-of-work/target comparison display into -D (debug)

nfactor-troky
Jeff Garzik 14 years ago committed by Jeff Garzik
parent
commit
51eb1b4ef9
  1. 24
      util.c

24
util.c

@ -283,17 +283,19 @@ bool fulltest(const unsigned char *hash, const unsigned char *target)
} }
} }
hash_str = bin2hex(hash_swap, 32); if (opt_debug) {
target_str = bin2hex(target_swap, 32); hash_str = bin2hex(hash_swap, 32);
target_str = bin2hex(target_swap, 32);
fprintf(stderr, " Proof: %s\nTarget: %s\nTrgVal? %s\n",
hash_str, fprintf(stderr, " Proof: %s\nTarget: %s\nTrgVal? %s\n",
target_str, hash_str,
rc ? "YES (hash < target)" : target_str,
"no (false positive; hash > target)"); rc ? "YES (hash < target)" :
"no (false positive; hash > target)");
free(hash_str);
free(target_str); free(hash_str);
free(target_str);
}
return rc; return rc;
} }

Loading…
Cancel
Save