]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Mon, 16 Apr 2018 17:50:13 +0000 (20:50 +0300)
committerjl777 <[email protected]>
Mon, 16 Apr 2018 17:50:13 +0000 (20:50 +0300)
src/pow.cpp

index 2e92931ae818a9713db5c0dc1cd44b12c72154f8..9bdd90cb17c55b692cdaa9d9e7e482bc0611e5a2 100644 (file)
@@ -213,7 +213,12 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash,unsigned int
             return false;
         }
     }
-    fprintf(stderr,"height.%d notaryid.%d PoW valid\n",height,notaryid);
+    for (i=31; i>=0; i--)
+        fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
+    fprintf(stderr," hash vs ");
+    for (i=31; i>=0; i--)
+        fprintf(stderr,"%02x",((uint8_t *)&bnTarget)[i]);
+    fprintf(stderr," height.%d notaryid.%d PoW valid\n",height,notaryid);
     return true;
 }
 
This page took 0.023508 seconds and 4 git commands to generate.