Hide debug info
authoralex <alex@alex-VirtualBox.(none)>
Fri, 19 Apr 2013 22:58:57 +0000 (02:58 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Fri, 19 Apr 2013 22:58:57 +0000 (02:58 +0400)
src/main.cpp

index 18d85f2..3b7652e 100644 (file)
@@ -4121,7 +4121,9 @@ CBlock* CreateNewBlock(CWallet* pwallet, bool fProofOfStake)
 
         nLastBlockTx = nBlockTx;
         nLastBlockSize = nBlockSize;
-        printf("CreateNewBlock(): total size %"PRI64u"\n", nBlockSize);
+
+        if (fDebug && GetBoolArg("-printpriority"))
+            printf("CreateNewBlock(): total size %"PRI64u"\n", nBlockSize);
 
         if (pblock->IsProofOfWork())
             pblock->vtx[0].vout[0].nValue = GetProofOfWorkReward(pblock->nBits);