Skip to content

Commit

Permalink
[sin] set forkheight for new updatemetadata
Browse files Browse the repository at this point in the history
Signed-off-by: crptec <crptec.fr@gmail.com>
  • Loading branch information
crptec committed May 21, 2021
1 parent bcbed70 commit aef9846
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/chainparams.cpp
Expand Up @@ -111,6 +111,7 @@ class CMainParams : public CChainParams {
consensus.nINActivationHeight = 170000; // Activation of IN payments, should also be the same as nInfinityNodeBeginHeight in primitives/block.cpp
consensus.nINEnforcementHeight = 178000; // Enforcement of IN payments
consensus.nDINActivationHeight = 550000; // Activation of DIN 1.0 payments, and new dev fee address.
consensus.nINMetaUpdateChangeHeight=9999999; // Activation newmethod updatemetadata. Sinovate mainnet The same as POS4

// height at which we fork to X25X
consensus.nX25XForkHeight = 170000;
Expand All @@ -131,7 +132,7 @@ class CMainParams : public CChainParams {
consensus.nPoS_EMATargetTimespan = 30 * 60;
consensus.nTimeSlotLength = 15;
consensus.nPoSMinStakeValue = 1;
consensus.nPoSModSwitch = 9999999; // the same height is used for updatemetadata fork
consensus.nPoSModSwitch = 0; // the same height is used for updatemetadata fork

// addresses
consensus.devAddressPubKey = "841e6bf56b99a59545da932de2efb23ab93b4f44";
Expand Down Expand Up @@ -274,6 +275,7 @@ class CTestNetParams : public CChainParams {
consensus.nINActivationHeight = 100; // Activation of IN payments, should also be the same as nInfinityNodeBeginHeight in primitives/block.cpp
consensus.nINEnforcementHeight = 120; // Enforcement of IN payments
consensus.nDINActivationHeight = 2880; // Activation of DIN 1.0 payments, and new dev fee address.
consensus.nINMetaUpdateChangeHeight=24500;

// height at which we fork to X25X
consensus.nX25XForkHeight = 170000;
Expand Down Expand Up @@ -454,6 +456,8 @@ class SigNetParams : public CChainParams {
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008

consensus.nINMetaUpdateChangeHeight=0;

// Activation of Taproot (BIPs 340-342)
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].bit = 2;
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nStartTime = Consensus::BIP9Deployment::ALWAYS_ACTIVE;
Expand Down Expand Up @@ -528,6 +532,7 @@ class CRegTestParams : public CChainParams {
consensus.nINActivationHeight = 5000; // Activation of IN payments, should also be the same as nInfinityNodeBeginHeight in primitives/block.cpp
consensus.nINEnforcementHeight = 5500; // Enforcement of IN payments
consensus.nDINActivationHeight = 550000; // Activation of DIN 1.0 payments, and new dev fee address.
consensus.nINMetaUpdateChangeHeight=0; // can use last method on regnet

// height at which we fork to X25X
consensus.nX25XForkHeight = 500;
Expand Down
1 change: 1 addition & 0 deletions src/consensus/params.h
Expand Up @@ -69,6 +69,7 @@ struct Params {
int nINActivationHeight; // block height (int)
int nINEnforcementHeight; // block height (int)
int nDINActivationHeight; // block height (int) - DIN switch height
int nINMetaUpdateChangeHeight; // block height (int) - new method of updatemetadata

// different constant addresses we use
const char *devAddressPubKey;
Expand Down

0 comments on commit aef9846

Please sign in to comment.