From 286d95b1df048c6c69649ceed989f0f4fbc16a87 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 19 Apr 2018 15:38:34 +0300 Subject: [PATCH] Test --- src/miner.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 759567278..11f25cb71 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -895,16 +895,9 @@ void static BitcoinMiner() // Write the solution to the hash and compute the result. B = *pblock; h = UintToArith256(B.GetHash()); - for (z=31; z>=0; z--) - fprintf(stderr,"%02x",((uint8_t *)&hashTarget)[z]); - fprintf(stderr," running solver\n"); LogPrint("pow", "- Checking solution against target\n"); pblock->nSolution = soln; solutionTargetChecks.increment(); - h = UintToArith256(B.GetHash()); - for (z=31; z>=0; z--) - fprintf(stderr,"%02x",((uint8_t *)&hashTarget)[z]); - fprintf(stderr," running solver2\n"); if ( h > hashTarget ) return false; for (z=31; z>=16; z--) @@ -950,7 +943,7 @@ void static BitcoinMiner() } else { - uint256 tmp = pblock->GetHash(); + uint256 tmp = B.GetHash(); int32_t z; for (z=31; z>=0; z--) fprintf(stderr,"%02x",((uint8_t *)&tmp)[z]); fprintf(stderr," mined block!\n");