reduce memory usage
This commit is contained in:
parent
aaeda811db
commit
25894972c1
@ -598,7 +598,7 @@ void CMasternodePayments::CleanPaymentList()
|
||||
if(chainActive.Tip() == NULL) return;
|
||||
|
||||
//keep up to five cycles for historical sake
|
||||
int nLimit = std::max(((int)mnodeman.size())*2, 1000);
|
||||
int nLimit = std::max(((int)mnodeman.size())*1.25, 1000);
|
||||
|
||||
std::map<uint256, CMasternodePaymentWinner>::iterator it = mapMasternodePayeeVotes.begin();
|
||||
while(it != mapMasternodePayeeVotes.end()) {
|
||||
|
@ -265,7 +265,7 @@ void CMasternodeSync::Process()
|
||||
} else if(RequestedMasternodeAttempt < 4) {
|
||||
mnodeman.DsegUpdate(pnode);
|
||||
} else if(RequestedMasternodeAttempt < 6) {
|
||||
int nMnCount = mnodeman.CountEnabled()*2;
|
||||
int nMnCount = mnodeman.CountEnabled();
|
||||
pnode->PushMessage("mnget", nMnCount); //sync payees
|
||||
uint256 n = 0;
|
||||
pnode->PushMessage("mnvs", n); //sync masternode votes
|
||||
@ -351,7 +351,7 @@ void CMasternodeSync::Process()
|
||||
CBlockIndex* pindexPrev = chainActive.Tip();
|
||||
if(pindexPrev == NULL) return;
|
||||
|
||||
int nMnCount = mnodeman.CountEnabled()*2;
|
||||
int nMnCount = mnodeman.CountEnabled();
|
||||
pnode->PushMessage("mnget", nMnCount); //sync payees
|
||||
RequestedMasternodeAttempt++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user