Skip to content

Commit

Permalink
Merge pull request dashpay#8 from vkaxproject/v17.1.16
Browse files Browse the repository at this point in the history
reward recalculation
  • Loading branch information
michaelvkax authored Aug 31, 2022
2 parents 40ef66b + df957e8 commit 886af72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 17)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 5)
define(_CLIENT_VERSION_BUILD, 6)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2022)
define(_COPYRIGHT_HOLDERS,[The %s developers])
Expand Down
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ class CMainParams : public CChainParams {
// Deployment of Block Reward Reallocation
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].bit = 5;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nStartTime = 1659225070; // July 30th, 2022
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nTimeout = 1690761070; // July 30th, 2023
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nTimeout = 1662047403; // Sept 1st, 2022
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nWindowSize = 4032;
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nThresholdStart = 3226; // 80% of 4032
consensus.vDeployments[Consensus::DEPLOYMENT_REALLOC].nThresholdMin = 2420; // 60% of 4032
Expand Down
19 changes: 13 additions & 6 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1189,17 +1189,24 @@ CAmount GetMasternodePayment(int nHeight, CAmount blockValue, int nReallocActiva
if (nHeight < nReallocStart) {
// Activated but we have to wait for the next cycle to start realocation, nothing to do
return ret;
} else if ((nHeight > 34400) && (nHeight < 51116)) {
return ret/1.5;
} else if ((nHeight > 51116) && (nHeight < 67732)) {
return ret/1.6;
} else if (nHeight > 67732) {
return ret/1.8;
}


// Periods used to reallocate the masternode reward from 50% to 60%
static std::vector<int> vecPeriods{
90, // Period 1: 90%
70, // Period 2: 70%
80, // Period 3: 80%
60, // Period 4: 60%
65, // Period 5: 65%
68, // Period 6: 68%
70, // Period 7: 70%
100, // Period 2: 70%
100, // Period 3: 80%
100, // Period 4: 60%
100, // Period 5: 65%
100, // Period 6: 68%
100, // Period 7: 70%
72, // Period 8: 72%
74, // Period 9: 74%
76, // Period 10: 76%
Expand Down

0 comments on commit 886af72

Please sign in to comment.