Skip to content

Commit

Permalink
keep more records when spork 112 is active
Browse files Browse the repository at this point in the history
  • Loading branch information
stepollo committed Apr 16, 2022
1 parent 6ec41b0 commit 360b216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/masternode-payments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ void CMasternodePayments::CleanPaymentList()
LOCK2(cs_mapMasternodePayeeVotes, cs_mapMasternodeBlocks);

//keep up to five cycles for historical sake
int nLimit = std::max(int(mnodeman.size() * 1.25), 1000);
int nLimit = std::max(int(mnodeman.size() * (sporkManager.IsSporkActive(SPORK_112_MASTERNODE_LAST_PAID_V2) ? 2 : 1.25)), 1000);

std::map<uint256, CMasternodePaymentWinner>::iterator it = mapMasternodePayeeVotes.begin();
while (it != mapMasternodePayeeVotes.end()) {
Expand Down

0 comments on commit 360b216

Please sign in to comment.