Skip to content

Commit 6b3fba9

Browse files
committed
[Dynode] Update debug printing
1 parent 4dd9bc9 commit 6b3fba9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/dynode-payments.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ bool IsBlockValueValid(const CBlock& block, int nBlockHeight, CAmount blockRewar
4646
strErrorRet = "";
4747

4848
bool isBlockRewardValueMet = (block.vtx[0]->GetValueOut() <= blockReward);
49-
if (fDebug)
50-
LogPrintf("block.vtx[0].GetValueOut() %lld <= blockReward %lld\n", block.vtx[0]->GetValueOut(), blockReward);
49+
LogPrint("gobject", "block.vtx[0].GetValueOut() %lld <= blockReward %lld\n", block.vtx[0]->GetValueOut(), blockReward);
5150

5251
// we are still using budgets, but we have no data about them anymore,
5352
// all we know is predefined budget cycle and window
@@ -87,8 +86,7 @@ bool IsBlockValueValid(const CBlock& block, int nBlockHeight, CAmount blockRewar
8786
if (!dynodeSync.IsSynced()) {
8887
// not enough data but at least it must NOT exceed superblock max value
8988
if (CSuperblock::IsValidBlockHeight(nBlockHeight)) {
90-
if (fDebug)
91-
LogPrintf("IsBlockPayeeValid -- WARNING: Client not synced, checking superblock max bounds only\n");
89+
LogPrint("gobject", "IsBlockPayeeValid -- WARNING: Client not synced, checking superblock max bounds only\n");
9290
if (!isSuperblockMaxValueMet) {
9391
strErrorRet = strprintf("coinbase pays too much at height %d (actual=%d vs limit=%d), exceeded superblock max value",
9492
nBlockHeight, block.vtx[0]->GetValueOut(), nSuperblockMaxValue);
@@ -141,8 +139,7 @@ bool IsBlockPayeeValid(const CTransaction& txNew, int nBlockHeight, CAmount bloc
141139
{
142140
if (!dynodeSync.IsSynced()) {
143141
//there is no budget data to use to check anything, let's just accept the longest chain
144-
if (fDebug)
145-
LogPrintf("IsBlockPayeeValid -- WARNING: Client not synced, skipping block payee checks\n");
142+
LogPrint("dnpayments", "IsBlockPayeeValid -- WARNING: Client not synced, skipping block payee checks\n");
146143
return true;
147144
}
148145

0 commit comments

Comments
 (0)