Last active
October 20, 2016 16:01
-
-
Save tgflynn/47b19dfe844c372aa7a97b0cca453ec4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMasternode* pprevMasternode = NULL; | |
BOOST_FOREACH(CMasternode* pmn, vSortedByAddr) { | |
if(!pmn->IsEnabled() && !pmn->IsPreEnabled()) continue; | |
if(!pprevMasternode) { | |
// Nothing to check on first pass | |
pprevMasternode = pmn; | |
continue; | |
} | |
if(pmn->addr == pprevMasternode->addr) { | |
if(!pmn->IsPoSeVerified()) { | |
// When there are duplicates ban all mn's that don't verify, except the first | |
vBan.push_back(pmn); | |
} | |
} | |
pprevMasternode = pmn; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment