]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Thu, 23 Mar 2017 01:35:44 +0000 (03:35 +0200)
committerjl777 <[email protected]>
Thu, 23 Mar 2017 01:35:44 +0000 (03:35 +0200)
src/main.cpp
src/miner.cpp

index f0b1925e3fa7bc1b1763049c41b6f183bfc48285..ba38979ba7c2851223343c142ace07231f1ffed0 100644 (file)
@@ -3203,11 +3203,11 @@ bool CheckBlockHeader(int32_t height,CBlockIndex *pindex, const CBlockHeader& bl
     {
         uint256 hash; int32_t i;
         hash = blockhdr.GetHash();
-        for (i=0; i<32; i++)
+        for (i=31; i>=0; i--)
             fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
         fprintf(stderr," <- CheckBlockHeader\n");
         hash = chainActive.Tip()->GetBlockHash();
-        for (i=0; i<32; i++)
+        for (i=31; i>=0; i--)
             fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
         fprintf(stderr," <- chainTip\n");
     }
index fdd5ea8c36736486d0a968c3f7ad5c7a15eab6bb..2582980b1c2efd9a3a3293e10229b7858aa8ee01 100644 (file)
@@ -514,11 +514,11 @@ static bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& rese
         {
             uint256 hash; int32_t i;
             hash = pblock->hashPrevBlock;
-            for (i=0; i<32; i++)
+            for (i=31; i>=0; i--)
                 fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
             fprintf(stderr," <- prev (stale)\n");
             hash = chainActive.Tip()->GetBlockHash();
-            for (i=0; i<32; i++)
+            for (i=31; i>=0; i--)
                 fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
             fprintf(stderr," <- chainTip (stale)\n");
 
This page took 0.040088 seconds and 4 git commands to generate.