Skip to content

Commit

Permalink
Merged in mainnet-fork-parameters-1 (pull request dashpay#83)
Browse files Browse the repository at this point in the history
Set fork height and protocol version
  • Loading branch information
FornaxA committed Jul 6, 2020
2 parents 666e798 + bc38da3 commit dc5969c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,14 @@ class CMainParams : public CChainParams {
consensus.BIP34Hash = uint256S("000000ed2f68cd6c7935831cc1d473da7c6decdb87e8b5dba0afff0b00002690");
consensus.BIP65Height = 1014023; // Start enforcing BIP65 (CHECKLOCKTIMEVERIFY) for blocks with version 9 and higher
consensus.BIP66Height = 1; // Start enforcing BIP66 (Strict DER signatures) for blocks with version 7 and higher
consensus.DIP0001Height = 9999999;
consensus.DIP0003Height = 9999999;
consensus.DIP0001Height = 1760000;
consensus.DIP0003Height = 1760000;
consensus.DIP0003EnforcementHeight = std::numeric_limits<int>::max();
consensus.DIP0003EnforcementHash = uint256();
consensus.IIP0006Height = 9999999;
consensus.CSVHeight = 9999999;
consensus.BIP147Height = 9999999;
consensus.DIP0008Height = 9999999;
consensus.IIP0006Height = 1760000;
consensus.CSVHeight = 1760000;
consensus.BIP147Height = 1760000;
consensus.DIP0008Height = 1760000;
consensus.powLimit = uint256S("000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // ~uint256(0) >> 24
consensus.hybridPowLimit = uint256S("000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // ~uint256(0) >> 24
consensus.nPowTargetTimespan = 24 * 60 * 60; // Ion: 1 day
Expand Down Expand Up @@ -326,7 +326,7 @@ class CMainParams : public CChainParams {
consensus.strTokenManagementKey = "inqaYuaES1cmRBXHodp25UceeVPbWQG5wY";
consensus.nOpGroupNewRequiredConfirmations = 1;
// POSPOW
consensus.POSPOWStartHeight = 9999999;
consensus.POSPOWStartHeight = 1760000;

consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 25;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/


static const int PROTOCOL_VERSION = 96000;
static const int PROTOCOL_VERSION = 96002;

//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 901;
Expand All @@ -22,7 +22,7 @@ static const int GETHEADERS_VERSION = 96000;

//! disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 95705;
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 96000;
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 96002;

//! nTime field added to CAddress, starting with this version;
//! if possible, avoid requesting addresses nodes older than this
Expand Down

0 comments on commit dc5969c

Please sign in to comment.