From aea2d1aaddc1227d6894f7477ce3d57b00fcbdd9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 18 Apr 2018 22:12:00 +0300 Subject: [PATCH] Test --- src/miner.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 652659aaf..7fd50e426 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -918,14 +918,20 @@ void static BitcoinMiner() LogPrint("pow", "- Checking solution against target\n"); pblock->nSolution = soln; solutionTargetChecks.increment(); - for (z=31; z>=0; z--) + for (z=31; z>=16; z--) fprintf(stderr,"%02x",((uint8_t *)&h)[z]); if ( h > HASHTarget ) { fprintf(stderr," missed target\n"); return false; } - fprintf(stderr," mined hash\n"); + fprintf(stderr," mined "); + for (z=31; z>=16; z--) + fprintf(stderr,"%02x",((uint8_t *)&hashTarget)[z]); + fprintf(stderr," hashTarget "); + for (z=31; z>=16; z--) + fprintf(stderr,"%02x",((uint8_t *)&HASHTarget)[z]); + fprintf(stderr," HASHTarget\n"); CValidationState state; if ( !TestBlockValidity(state, *pblock, chainActive.Tip(), true, false)) {