Merge pull request #248 from UdjinM6/v0.11.2.x_bring_mn_checks_back
mn inputage/sigtime checks (regtest support)
This commit is contained in:
commit
eee9dd2d2b
@ -404,8 +404,8 @@ bool CMasternodePayments::ProcessBlock(int nBlockHeight)
|
||||
|
||||
// pay to the oldest MN that still had no payment but its input is old enough and it was active long enough
|
||||
CMasternode *pmn = mnodeman.FindOldestNotInVec(vecLastPayments);
|
||||
|
||||
if(pmn != NULL)
|
||||
if(pmn != NULL &&
|
||||
(RegTest() || (!RegTest() && pmn->GetMasternodeInputAge() > nMinimumAge && pmn->lastTimeSeen - pmn->sigTime > nMinimumAge * 2.5 * 60)))
|
||||
{
|
||||
newWinner.score = 0;
|
||||
newWinner.nBlockHeight = nBlockHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user