various fixes

This commit is contained in:
Evan Duffield 2014-07-26 08:34:24 -07:00
parent 55e8b6fbf8
commit 05b1a140cf

View File

@ -6779,8 +6779,8 @@ void CDarkSendPool::NewBlock()
mv.Set(darkSendMasterNodes[winningNode].pubkey, pindexBest->nHeight + 1);
darkSendMasterNodeVotes.push_back(mv);
if(darkSendMasterNodeVotes.size() > MASTERNODE_PAYMENTS_EXPIRATION){
darkSendMasterNodeVotes.erase(darkSendMasterNodeVotes.begin(), darkSendMasterNodeVotes.end()-MASTERNODE_PAYMENTS_EXPIRATION);
if(darkSendMasterNodeVotes.size() > 10){
darkSendMasterNodeVotes.erase(darkSendMasterNodeVotes.begin(), darkSendMasterNodeVotes.end()-10);
}
}
}