Skip to content

Commit

Permalink
Merge branch 'DASHD-develop' of https://github.com/decenomy/DSW
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-at-decenomy committed Jan 14, 2022
2 parents 283ca7c + 2585627 commit fcf2687
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ class CMainParams : public CChainParams
consensus.nStakeMinDepthV2 = 600;
consensus.nTargetTimespan = 40;
consensus.nTargetTimespanV2 = 30;
consensus.nTargetTimespanV3 = 30 * 60;
consensus.nTargetSpacing = 1 * 150;
consensus.nTargetSpacingV2 = 1 * 60;
consensus.nTimeSlotLength = 15;
Expand Down Expand Up @@ -283,7 +282,6 @@ class CMainParams : public CChainParams
consensus.vUpgrades[Consensus::UPGRADE_STAKE_MIN_DEPTH_V2].nActivationHeight = 525001;
consensus.vUpgrades[Consensus::UPGRADE_MASTERNODE_RANK_V2].nActivationHeight = 523001;
consensus.vUpgrades[Consensus::UPGRADE_COINBASE_MATURITY_V2].nActivationHeight = 525001;
consensus.vUpgrades[Consensus::UPGRADE_TIMESPAN_V3].nActivationHeight = 800001;

consensus.vUpgrades[Consensus::UPGRADE_POS].hashActivationBlock = uint256S("d5d5436381a5aceff75bae332b4a35f3c24b52194a56518fecf0ad25b03c2a80");
consensus.vUpgrades[Consensus::UPGRADE_POS_V2].hashActivationBlock = uint256S("11374e214fdc781a3ea206ead6cf23291ec3abfda245d58b0e555bc8d9711854");
Expand All @@ -295,7 +293,6 @@ class CMainParams : public CChainParams
consensus.vUpgrades[Consensus::UPGRADE_STAKE_MIN_DEPTH_V2].hashActivationBlock = uint256S("8686d0f1739d6dfc6eafcefb4c9ad1b56fc256a852d5087593631ccb0866b8f4");
consensus.vUpgrades[Consensus::UPGRADE_MASTERNODE_RANK_V2].hashActivationBlock = uint256S("982267b09fbedbfad523c97f2c73a483dd070b11c00042a1fdb5586e3ab8848d");
consensus.vUpgrades[Consensus::UPGRADE_COINBASE_MATURITY_V2].hashActivationBlock = uint256S("8686d0f1739d6dfc6eafcefb4c9ad1b56fc256a852d5087593631ccb0866b8f4");
consensus.vUpgrades[Consensus::UPGRADE_TIMESPAN_V3].hashActivationBlock = uint256S("0x0");

/**
* The message start string is designed to be unlikely to occur in normal data.
Expand Down
4 changes: 1 addition & 3 deletions src/consensus/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ enum UpgradeIndex : uint32_t {
UPGRADE_STAKE_MIN_DEPTH_V2,
UPGRADE_MASTERNODE_RANK_V2,
UPGRADE_COINBASE_MATURITY_V2,
UPGRADE_TIMESPAN_V3,
// NOTE: Also add new upgrades to NetworkUpgradeInfo in upgrades.cpp
UPGRADE_TESTDUMMY,
MAX_NETWORK_UPGRADES,
Expand Down Expand Up @@ -110,7 +109,6 @@ struct Params {
int nStakeMinDepthV2;
int64_t nTargetTimespan;
int64_t nTargetTimespanV2;
int64_t nTargetTimespanV3;
int64_t nTargetSpacing;
int64_t nTargetSpacingV2;
int nTimeSlotLength;
Expand All @@ -135,7 +133,7 @@ struct Params {
// Map with network updates
NetworkUpgrade vUpgrades[MAX_NETWORK_UPGRADES];

int64_t TargetTimespan(const int nHeight) const { return TargetSpacing(nHeight) * (IsTimeProtocolV2(nHeight) ? (NetworkUpgradeActive(nHeight, UPGRADE_TIMESPAN_V3) ? nTargetTimespanV3 : nTargetTimespanV2) : nTargetTimespan); }
int64_t TargetTimespan(const int nHeight) const { return TargetSpacing(nHeight) * (IsTimeProtocolV2(nHeight) ? nTargetTimespanV2 : nTargetTimespan); }
int64_t TargetSpacing(const int nHeight) const { return NetworkUpgradeActive(nHeight, UPGRADE_NEW_TARGET_SPACING) ? nTargetSpacingV2 : nTargetSpacing; }
int CoinbaseMaturity(const int nHeight) const { return NetworkUpgradeActive(nHeight, UPGRADE_COINBASE_MATURITY_V2) ? nCoinbaseMaturityV2 : nCoinbaseMaturity; }
uint256 ProofOfStakeLimit(const int nHeight) const { return IsTimeProtocolV2(nHeight) ? posLimitV2 : posLimitV1; }
Expand Down

0 comments on commit fcf2687

Please sign in to comment.