Skip to content

Commit 88f3370

Browse files
Evan Duffieldschinzelh
authored andcommitted
Merge #877: Revert "V0.12.0.x fix budget submission"
* Revert "V0.12.0.x fix budget submission"
1 parent b7fd92d commit 88f3370

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 0)
44
define(_CLIENT_VERSION_MINOR, 12)
55
define(_CLIENT_VERSION_REVISION, 0)
6-
define(_CLIENT_VERSION_BUILD, 57)
6+
define(_CLIENT_VERSION_BUILD, 58)
77
define(_CLIENT_VERSION_IS_RELEASE, true)
88
define(_COPYRIGHT_YEAR, 2016)
99
AC_INIT([Dash Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[[email protected]],[dash])

src/clientversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define CLIENT_VERSION_MAJOR 0
1818
#define CLIENT_VERSION_MINOR 12
1919
#define CLIENT_VERSION_REVISION 0
20-
#define CLIENT_VERSION_BUILD 57
20+
#define CLIENT_VERSION_BUILD 58
2121

2222
//! Set to true for release, false for prerelease or test build
2323
#define CLIENT_VERSION_IS_RELEASE true

src/masternode-budget.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int GetBudgetPaymentCycleBlocks(){
3232
return 50; //ten times per day
3333
}
3434

35-
bool IsBudgetCollateralValid(uint256 nTxCollateralHash, uint256 nExpectedHash, std::string& strError, int64_t nTime, int& nConf)
35+
bool IsBudgetCollateralValid(uint256 nTxCollateralHash, uint256 nExpectedHash, std::string& strError, int64_t& nTime, int& nConf)
3636
{
3737
CTransaction txCollateral;
3838
uint256 nBlockHash;
@@ -64,6 +64,12 @@ bool IsBudgetCollateralValid(uint256 nTxCollateralHash, uint256 nExpectedHash, s
6464
return false;
6565
}
6666

67+
// RETRIEVE CONFIRMATIONS AND NTIME
68+
/*
69+
- nTime starts as zero and is passed-by-reference out of this function and stored in the external proposal
70+
- nTime is never validated via the hashing mechanism and comes from a full-validated source (the blockchain)
71+
*/
72+
6773
int conf = GetIXConfirmations(nTxCollateralHash);
6874
if (nBlockHash != uint256(0)) {
6975
BlockMap::iterator mi = mapBlockIndex.find(nBlockHash);

src/masternode-budget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void DumpBudgets();
4646
int GetBudgetPaymentCycleBlocks();
4747

4848
//Check the collateral transaction for the budget proposal/finalized budget
49-
bool IsBudgetCollateralValid(uint256 nTxCollateralHash, uint256 nExpectedHash, std::string& strError, int64_t nTime, int& nConf);
49+
bool IsBudgetCollateralValid(uint256 nTxCollateralHash, uint256 nExpectedHash, std::string& strError, int64_t& nTime, int& nConf);
5050

5151
/** Save Budget Manager (budget.dat)
5252
*/

0 commit comments

Comments
 (0)