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:
evan82 2015-03-17 04:36:52 -07:00
commit eee9dd2d2b

View File

@ -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;