@@ -92,7 +92,7 @@ bool CheckCollateral(const uint256& nTxCollateralHash, const uint256& nExpectedH
9292 return true ;
9393}
9494
95- bool IsBudgetCollateralValid (const uint256& nTxCollateralHash, int nCurrentHeight, int nProposalHeight, std::string& strError)
95+ bool CheckCollateralConfs (const uint256& nTxCollateralHash, int nCurrentHeight, int nProposalHeight, std::string& strError)
9696{
9797 // if we're syncing we won't have swiftTX information, so accept 1 confirmation
9898 const int nRequiredConfs = Params ().GetConsensus ().nBudgetFeeConfirmations ;
@@ -1431,8 +1431,7 @@ bool CBudgetProposal::CheckAddress()
14311431
14321432bool CBudgetProposal::CheckRequiredConfs (int nCurrentHeight)
14331433{
1434- std::string strError;
1435- return IsBudgetCollateralValid (nFeeTXHash, nCurrentHeight, nBlockFeeTx, strError);
1434+ return CheckCollateralConfs (nFeeTXHash, nCurrentHeight, nBlockFeeTx, strInvalid);
14361435}
14371436
14381437bool CBudgetProposal::IsWellFormed (const CAmount& nTotalBudget)
@@ -1990,8 +1989,7 @@ bool CFinalizedBudget::CheckName()
19901989
19911990bool CFinalizedBudget::CheckRequiredConfs (int nCurrentHeight)
19921991{
1993- std::string strError;
1994- return IsBudgetCollateralValid (nFeeTXHash, nCurrentHeight, nBlockFeeTx, strError);
1992+ return CheckCollateralConfs (nFeeTXHash, nCurrentHeight, nBlockFeeTx, strInvalid);
19951993}
19961994
19971995bool CFinalizedBudget::IsExpired (int nCurrentHeight)
0 commit comments