]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Mon, 16 Apr 2018 19:52:58 +0000 (22:52 +0300)
committerjl777 <[email protected]>
Mon, 16 Apr 2018 19:52:58 +0000 (22:52 +0300)
src/main.cpp
src/miner.cpp

index 028b726233003933ef4d659680de816cdaacbb01..d8874b1c8011628c601e5aef2bcd6e868689c4cb 100644 (file)
@@ -3565,7 +3565,7 @@ bool CheckBlock(int32_t height,CBlockIndex *pindex,const CBlock& block, CValidat
     // redundant with the call in AcceptBlockHeader.
     if (!CheckBlockHeader(height,pindex,block,state,fCheckPOW))
     {
-        fprintf(stderr,"checkblockheader error PoW.%d\n",fCheckPOW);
+        //fprintf(stderr,"checkblockheader error PoW.%d\n",fCheckPOW);
         return false;
     }
     if ( fCheckPOW && !CheckEquihashSolution(&block, Params()) )
@@ -3970,7 +3970,7 @@ bool TestBlockValidity(CValidationState &state, const CBlock& block, CBlockIndex
     }
     if (!CheckBlock(indexDummy.nHeight,0,block, state, verifier, fCheckPOW, fCheckMerkleRoot))
     {
-        fprintf(stderr,"TestBlockValidity failure B\n");
+        //fprintf(stderr,"TestBlockValidity failure B\n");
         return false;
     }
     if (!ContextualCheckBlock(block, state, pindexPrev))
index 062156822aa0c4424fe3f5296181f9cd1b17048e..df75ba6dc396118fd0b12a5575b0f1567a9ce756 100644 (file)
@@ -492,9 +492,9 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
         CValidationState state;
         if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false))
         {
-            static uint32_t counter;
+            //static uint32_t counter;
             //if ( counter++ < 100 && ASSETCHAINS_STAKED == 0 )
-            fprintf(stderr,"warning: miner testblockvalidity failed\n");
+            //fprintf(stderr,"warning: miner testblockvalidity failed\n");
             return(0);
         }
     }
This page took 0.039996 seconds and 4 git commands to generate.