Skip to content

Commit 090d708

Browse files
committed
[Trivial] Rename IsBudgetCollateralValid and don't export it
1 parent ad1e9a2 commit 090d708

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/masternode-budget.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

14321432
bool 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

14381437
bool CBudgetProposal::IsWellFormed(const CAmount& nTotalBudget)
@@ -1990,8 +1989,7 @@ bool CFinalizedBudget::CheckName()
19901989

19911990
bool 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

19971995
bool CFinalizedBudget::IsExpired(int nCurrentHeight)

src/masternode-budget.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ static std::map<uint256, int> mapPayment_History;
4040
extern CBudgetManager budget;
4141
void DumpBudgets();
4242

43-
//Check the collateral transaction for the budget proposal/finalized budget
44-
bool IsBudgetCollateralValid(const uint256& nTxCollateralHash, const uint256& nExpectedHash, std::string& strError, int64_t& nTime, int& nConf, bool fBudgetFinalization=false);
45-
4643
//
4744
// CBudgetVote - Allow a masternode node to vote and broadcast throughout the network
4845
//

0 commit comments

Comments
 (0)