Skip to content

Commit 119fe83

Browse files
authored
Do not send outdated MNs on sync (#1373)
1 parent 5598d64 commit 119fe83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/masternodeman.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
909909
BOOST_FOREACH(CMasternode& mn, vMasternodes) {
910910
if (vin != CTxIn() && vin != mn.vin) continue; // asked for specific vin but we are not there yet
911911
if (mn.addr.IsRFC1918() || mn.addr.IsLocal()) continue; // do not send local network masternode
912+
if (mn.IsUpdateRequired()) continue; // do not send outdated masternodes
912913

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

0 commit comments

Comments
 (0)