mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
various fixes
This commit is contained in:
parent
55e8b6fbf8
commit
05b1a140cf
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user