Skip to content

Commit

Permalink
Fix bugs in getting collateral transaction amount and conform to styl…
Browse files Browse the repository at this point in the history
…e standards
  • Loading branch information
meyer9 committed Feb 21, 2018
1 parent e69e494 commit 303b770
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/masternode-budget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ std::vector<CFinalizedBudgetBroadcast> vecImmatureFinalizedBudgets;
int nSubmittedFinalBudget;

CAmount GetBudgetSystemCollateralAmount(int nHeight) {
if (nHeight < 250000) {
return 50 * COIN;
} else {
return 25 * COIN;
}
if (nHeight < 250000) {
return 50 * COIN;
} else {
return 25 * COIN;
}
}

int GetBudgetPaymentCycleBlocks()
Expand Down
3 changes: 3 additions & 0 deletions src/masternode-budget.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ int GetBudgetPaymentCycleBlocks();
//Check the collateral transaction for the budget proposal/finalized budget
bool IsBudgetCollateralValid(uint256 nTxCollateralHash, uint256 nExpectedHash, std::string& strError, int64_t& nTime, int& nConf);

// Get the budget collateral amount for a block height
CAmount GetBudgetSystemCollateralAmount(int nHeight);

//
// CBudgetVote - Allow a masternode node to vote and broadcast throughout the network
//
Expand Down

0 comments on commit 303b770

Please sign in to comment.