Fix a crash in masternode winners
when count
is too large (#2902)
This commit is contained in:
parent
357b7279de
commit
b63f7dd39a
@ -261,6 +261,10 @@ std::map<int, std::string> GetRequiredPaymentsStrings(int nStartHeight, int nEnd
|
||||
{
|
||||
std::map<int, std::string> mapPayments;
|
||||
|
||||
if (nStartHeight < 1) {
|
||||
nStartHeight = 1;
|
||||
}
|
||||
|
||||
LOCK(cs_main);
|
||||
int nChainTipHeight = chainActive.Height();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user