From: alex Date: Fri, 19 Apr 2013 22:58:57 +0000 (+0400) Subject: Hide debug info X-Git-Tag: v0.4.0-nvc~2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=81c07c2fa3d107d0d937006f276814204db947df Hide debug info --- diff --git a/src/main.cpp b/src/main.cpp index 18d85f2..3b7652e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);