randomly sort masternodes before picking next winner

This commit is contained in:
Evan Duffield 2014-12-30 22:45:45 -07:00
parent bc20787fec
commit d219a6c51a

View File

@ -776,6 +776,7 @@ bool CMasternodePayments::ProcessBlock(int nBlockHeight)
if(++c > (int)vecMasternodes.size()) break;
}
std::random_shuffle ( vecMasternodes.begin(), vecMasternodes.end() );
BOOST_FOREACH(CMasterNode& mn, vecMasternodes) {
bool found = false;
BOOST_FOREACH(CTxIn& vin, vecLastPayments)