@@ -113,22 +113,31 @@ struct CMainSignals {
113113bool IsMNCollateralValid (int64_t value, int nHeight) {
114114 if (nHeight < TIERED_MASTERNODES_START_BLOCK) {
115115 return value == 5000 *COIN;
116- } else {
116+ } else if (nHeight < 157000 ) {
117117 // Using BOOST_FOREACH for concistency with the rest of the code, everything should be using a plain for from c++ 11 or 17
118118 BOOST_FOREACH (PAIRTYPE (const int , int )& mntier, masternodeTiers)
119119 {
120120 if (value == (mntier.second )*COIN)
121121 return true ;
122122 }
123+ } else {
124+ // Using BOOST_FOREACH for concistency with the rest of the code, everything should be using a plain for from c++ 11 or 17
125+ BOOST_FOREACH (PAIRTYPE (const int , int )& mntier, masternodeTiers157000)
126+ {
127+ if (value == (mntier.second )*COIN)
128+ return true ;
129+ }
123130 }
124131 return false ;
125132}
126133
127134int64_t GetMNCollateral (int nHeight, int tier) {
128135 if (nHeight < TIERED_MASTERNODES_START_BLOCK) {
129136 return 5000 ;
130- } else {
137+ } else if (nHeight < 157000 ) {
131138 return masternodeTiers[tier];
139+ } else {
140+ return masternodeTiers157000[tier];
132141 }
133142}
134143
@@ -1400,7 +1409,7 @@ bool IsPOSRewardValid(int64_t value, int64_t nFees) {
14001409 if (nHeight < TIERED_MASTERNODES_START_BLOCK) {
14011410 return value == (120 *COIN + nFees);
14021411 }
1403- else {
1412+ else if (nHeight < 157000 ) {
14041413 // Using BOOST_FOREACH for concistency with the rest of the code
14051414 BOOST_FOREACH (PAIRTYPE (const int , int )& tier, masternodeTierRewards)
14061415 {
@@ -1412,6 +1421,30 @@ bool IsPOSRewardValid(int64_t value, int64_t nFees) {
14121421 return true ;
14131422 }
14141423 }
1424+ else if (nHeight < 242600 ) {
1425+ // Using BOOST_FOREACH for concistency with the rest of the code
1426+ BOOST_FOREACH (PAIRTYPE (const int , int )& tier, masternodeTierRewards157000)
1427+ {
1428+ if (value == (tier.second *COIN + POS_REWARD_TIERED_MN*COIN + nFees))
1429+ return true ;
1430+ }
1431+ // The case of a wallet staking with no mns up
1432+ if (value == POS_REWARD_TIERED_MN*COIN + nFees) {
1433+ return true ;
1434+ }
1435+ }
1436+ else {
1437+ // Using BOOST_FOREACH for concistency with the rest of the code
1438+ BOOST_FOREACH (PAIRTYPE (const int , int )& tier, masternodeTierRewards242600)
1439+ {
1440+ if (value == (tier.second *COIN + POS_REWARD_TIERED_MN*COIN + nFees))
1441+ return true ;
1442+ }
1443+ // The case of a wallet staking with no mns up
1444+ if (value == POS_REWARD_TIERED_MN*COIN + nFees) {
1445+ return true ;
1446+ }
1447+ }
14151448 }
14161449 return false ;
14171450}
0 commit comments