@@ -183,10 +183,10 @@ CDeterministicMNCPtr CDeterministicMNList::GetMNPayee(const CBlockIndex* pIndex)
183183 }
184184
185185 bool isv19Active = llmq::utils::IsV19Active (pIndex);
186- bool isMNRRActive = llmq::utils::IsMNRewardReallocationActive (pIndex);
186+ bool isMNRewardReallocated = llmq::utils::IsMNRewardReallocationActive (pIndex);
187187 CDeterministicMNCPtr best{nullptr };
188188 // Starting from v19 and until v20 (Platform release), HPMN will be rewarded 4 blocks in a row
189- if (isv19Active && !isMNRRActive ) {
189+ if (isv19Active && !isMNRewardReallocated ) {
190190 ForEachMNShared (true , [&](const CDeterministicMNCPtr& dmn) {
191191 if (dmn->pdmnState ->nLastPaidHeight == nHeight) {
192192 // We found the last MN Payee.
@@ -224,11 +224,12 @@ std::vector<CDeterministicMNCPtr> CDeterministicMNList::GetProjectedMNPayees(int
224224
225225 auto remaining_hpmn_payments = 0 ;
226226 CDeterministicMNCPtr hpmn_to_be_skipped = nullptr ;
227+ bool isMNRewardReallocated = llmq::utils::IsMNRewardReallocationActive (pIndex);
227228 ForEachMNShared (true , [&](const CDeterministicMNCPtr& dmn) {
228229 if (dmn->pdmnState ->nLastPaidHeight == nHeight) {
229230 // We found the last MN Payee.
230231 // If the last payee is a HPMN, we need to check its consecutive payments and pay him again if needed
231- if (dmn->nType == MnType::HighPerformance && dmn->pdmnState ->nConsecutivePayments < dmn_types::HighPerformance.voting_weight ) {
232+ if (!isMNRewardReallocated && dmn->nType == MnType::HighPerformance && dmn->pdmnState ->nConsecutivePayments < dmn_types::HighPerformance.voting_weight ) {
232233 remaining_hpmn_payments = dmn_types::HighPerformance.voting_weight - dmn->pdmnState ->nConsecutivePayments ;
233234 for ([[maybe_unused]] auto _ : irange::range (remaining_hpmn_payments)) {
234235 result.emplace_back (dmn);
@@ -722,7 +723,7 @@ bool CDeterministicMNManager::BuildNewListFromBlock(const CBlock& block, const C
722723 DecreasePoSePenalties (newList);
723724
724725 bool isv19Active = llmq::utils::IsV19Active (pindexPrev);
725- bool isMNRRActive = llmq::utils::IsMNRewardReallocationActive (pindexPrev);
726+ bool isMNRewardReallocated = llmq::utils::IsMNRewardReallocationActive (pindexPrev);
726727
727728 // we skip the coinbase
728729 for (int i = 1 ; i < (int )block.vtx .size (); i++) {
@@ -944,7 +945,7 @@ bool CDeterministicMNManager::BuildNewListFromBlock(const CBlock& block, const C
944945 // Starting from v19 and until v20, HPMN will be paid 4 blocks in a row
945946 // No need to check if v19 is active, since HPMN ProRegTx are allowed only after v19 activation
946947 // Note: If the payee wasn't found in the current block that's fine
947- if (dmn->nType == MnType::HighPerformance && !isMNRRActive ) {
948+ if (dmn->nType == MnType::HighPerformance && !isMNRewardReallocated ) {
948949 ++newState->nConsecutivePayments ;
949950 if (debugLogs) {
950951 LogPrint (BCLog::MNPAYMENTS, " CDeterministicMNManager::%s -- MN %s is a HPMN, bumping nConsecutivePayments to %d\n " ,
0 commit comments