@@ -46,8 +46,7 @@ bool IsBlockValueValid(const CBlock& block, int nBlockHeight, CAmount blockRewar
46
46
strErrorRet = " " ;
47
47
48
48
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);
51
50
52
51
// we are still using budgets, but we have no data about them anymore,
53
52
// all we know is predefined budget cycle and window
@@ -87,8 +86,7 @@ bool IsBlockValueValid(const CBlock& block, int nBlockHeight, CAmount blockRewar
87
86
if (!dynodeSync.IsSynced ()) {
88
87
// not enough data but at least it must NOT exceed superblock max value
89
88
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 " );
92
90
if (!isSuperblockMaxValueMet) {
93
91
strErrorRet = strprintf (" coinbase pays too much at height %d (actual=%d vs limit=%d), exceeded superblock max value" ,
94
92
nBlockHeight, block.vtx [0 ]->GetValueOut (), nSuperblockMaxValue);
@@ -141,8 +139,7 @@ bool IsBlockPayeeValid(const CTransaction& txNew, int nBlockHeight, CAmount bloc
141
139
{
142
140
if (!dynodeSync.IsSynced ()) {
143
141
// 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 " );
146
143
return true ;
147
144
}
148
145
0 commit comments