Skip to content

Commit

Permalink
Restricted outdated MN protocol message to debug-enabled config
Browse files Browse the repository at this point in the history
This will help prevent the disk from filling up with unwanted debug
  • Loading branch information
AegeusCoin committed Jul 22, 2018
1 parent 8cd3a22 commit 7b0f3cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/masternodeman.cpp
Expand Up @@ -603,7 +603,9 @@ int CMasternodeMan::GetMasternodeRank(const CTxIn& vin, int64_t nBlockHeight, in
// scan for winner
BOOST_FOREACH (CMasternode& mn, vMasternodes) {
if (mn.protocolVersion < minProtocol) {
LogPrintf("Skipping Masternode with obsolete version %d\n", mn.protocolVersion);
if (fDebug){
LogPrintf("Skipping Masternode with obsolete version %d\n", mn.protocolVersion);
}
continue; // Skip obsolete versions
}

Expand Down

0 comments on commit 7b0f3cc

Please sign in to comment.