randomly sort masternodes before picking next winner
This commit is contained in:
parent
bc20787fec
commit
d219a6c51a
@ -776,6 +776,7 @@ bool CMasternodePayments::ProcessBlock(int nBlockHeight)
|
|||||||
if(++c > (int)vecMasternodes.size()) break;
|
if(++c > (int)vecMasternodes.size()) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::random_shuffle ( vecMasternodes.begin(), vecMasternodes.end() );
|
||||||
BOOST_FOREACH(CMasterNode& mn, vecMasternodes) {
|
BOOST_FOREACH(CMasterNode& mn, vecMasternodes) {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
BOOST_FOREACH(CTxIn& vin, vecLastPayments)
|
BOOST_FOREACH(CTxIn& vin, vecLastPayments)
|
||||||
|
Loading…
Reference in New Issue
Block a user