Skip to content

Commit 5730412

Browse files
committed
Move legacy neural vote warnings to debug log level
This suppresses log messages that indicate that a block contains an invalid superblock vote. A large span of old blocks contain invalid votes which result in thousands of messages. Sync speed may improve a bit by showing them in the debug log level only. The messages are not particularly actionable, so most users don't need to see these.
1 parent e1de876 commit 5730412

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7003,12 +7003,12 @@ void IncrementNeuralNetworkSupermajority(const std::string& NeuralHash, const st
70037003
bool validaddresstovote = address.IsValid();
70047004
if (!validaddresstovote)
70057005
{
7006-
LogPrintf("INNS : Vote found in block with invalid GRC address. HASH: %s GRC: %s", NeuralHash, GRCAddress);
7006+
if (fDebug) LogPrintf("INNS : Vote found in block with invalid GRC address. HASH: %s GRC: %s", NeuralHash, GRCAddress);
70077007
return;
70087008
}
70097009
if (!IsNeuralNodeParticipant(GRCAddress, pblockindex->nTime))
70107010
{
7011-
LogPrintf("INNS : Vote found in block from ineligible neural node participant. HASH: %s GRC: %s", NeuralHash, GRCAddress);
7011+
if (fDebug) LogPrintf("INNS : Vote found in block from ineligible neural node participant. HASH: %s GRC: %s", NeuralHash, GRCAddress);
70127012
return;
70137013
}
70147014
}

0 commit comments

Comments
 (0)