Skip to content

Commit

Permalink
Do not send outdated MNs on sync (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Mar 1, 2017
1 parent 5598d64 commit 119fe83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/masternodeman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
BOOST_FOREACH(CMasternode& mn, vMasternodes) {
if (vin != CTxIn() && vin != mn.vin) continue; // asked for specific vin but we are not there yet
if (mn.addr.IsRFC1918() || mn.addr.IsLocal()) continue; // do not send local network masternode
if (mn.IsUpdateRequired()) continue; // do not send outdated masternodes

LogPrint("masternode", "DSEG -- Sending Masternode entry: masternode=%s addr=%s\n", mn.vin.prevout.ToStringShort(), mn.addr.ToString());
CMasternodeBroadcast mnb = CMasternodeBroadcast(mn);
Expand Down

0 comments on commit 119fe83

Please sign in to comment.