@@ -619,7 +619,7 @@ bool CBudgetManager::GetFinalizedBudget(const uint256& nHash, CFinalizedBudget&
619619bool CBudgetManager::IsBudgetPaymentBlock (int nBlockHeight, int & nCountThreshold) const
620620{
621621 int nHighestCount = GetHighestVoteCount (nBlockHeight);
622- int nCountEnabled = mnodeman.CountEnabled (ActiveProtocol () );
622+ int nCountEnabled = mnodeman.CountEnabled ();
623623 int nFivePercent = nCountEnabled / 20 ;
624624 // threshold for highest finalized budgets (highest vote count - 10% of active masternodes)
625625 nCountThreshold = nHighestCount - (nCountEnabled / 10 );
@@ -712,7 +712,7 @@ std::vector<CBudgetProposal> CBudgetManager::GetBudget()
712712 const int nBlocksPerCycle = Params ().GetConsensus ().nBudgetCycleBlocks ;
713713 int nBlockStart = nHeight - nHeight % nBlocksPerCycle + nBlocksPerCycle;
714714 int nBlockEnd = nBlockStart + nBlocksPerCycle - 1 ;
715- int mnCount = mnodeman.CountEnabled (ActiveProtocol () );
715+ int mnCount = mnodeman.CountEnabled ();
716716 CAmount nTotalBudget = GetTotalBudget (nBlockStart);
717717
718718 for (CBudgetProposal* pbudgetProposal: vBudgetPorposalsSort) {
@@ -736,7 +736,7 @@ std::vector<CBudgetProposal> CBudgetManager::GetBudget()
736736 } else {
737737 LogPrint (BCLog::MNBUDGET," %s: - Check 1 failed: valid=%d | %ld <= %ld | %ld >= %ld | Yeas=%d Nays=%d Count=%d | established=%d\n " ,
738738 __func__, pbudgetProposal->IsValid (), pbudgetProposal->GetBlockStart (), nBlockStart, pbudgetProposal->GetBlockEnd (),
739- nBlockEnd, pbudgetProposal->GetYeas (), pbudgetProposal->GetNays (), mnodeman.CountEnabled (ActiveProtocol () ) / 10 ,
739+ nBlockEnd, pbudgetProposal->GetYeas (), pbudgetProposal->GetNays (), mnodeman.CountEnabled () / 10 ,
740740 pbudgetProposal->IsEstablished ());
741741 }
742742
0 commit comments