aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-06-08 18:21:19 +0100
committerGitHub <[email protected]>2021-06-08 18:21:19 +0100
commit60cc97c7c4826ab2fbfe028b2a4c713654919343 (patch)
treea2ba90858817bf48b6d685f307296619b6c4c3b1 /src
parentMerge pull request #2260 from mmicael1/1.21-dev-boost-dependency (diff)
parentSwitch naming of AuxPoW activation to match BIPxxHeight style (diff)
downloaddiscoin-60cc97c7c4826ab2fbfe028b2a4c713654919343.tar.xz
discoin-60cc97c7c4826ab2fbfe028b2a4c713654919343.zip
Merge pull request #2252 from rnicoll/1.21-auxpow-parameters
Introduce AuxPoW chain parameters
Diffstat (limited to 'src')
-rw-r--r--src/chainparams.cpp16
-rw-r--r--src/consensus/params.h5
2 files changed, 21 insertions, 0 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp
index dd3e4a5a7..a3e34271f 100644
--- a/src/chainparams.cpp
+++ b/src/chainparams.cpp
@@ -99,6 +99,10 @@ public:
consensus.fSimplifiedRewards = false;
consensus.fShortEarlyCoinbase = true;
+ consensus.nAuxpowChainId = 0x0062; // 98 - Josh Wise!
+ consensus.fStrictChainId = true;
+ consensus.nAuxPowHeight = 371337;
+
/**
* The message start string is designed to be unlikely to occur in normal data.
* The characters are rarely used upper ASCII, not valid as UTF-8, and produce
@@ -216,6 +220,10 @@ public:
consensus.fSimplifiedRewards = false;
consensus.fShortEarlyCoinbase = true;
+ consensus.nAuxpowChainId = 0x0062; // 98 - Josh Wise!
+ consensus.fStrictChainId = false;
+ consensus.nAuxPowHeight = 158100;
+
pchMessageStart[0] = 0xfc;
pchMessageStart[1] = 0xc1;
pchMessageStart[2] = 0xb7;
@@ -345,6 +353,10 @@ public:
consensus.fSimplifiedRewards = true;
consensus.fShortEarlyCoinbase = true;
+ consensus.nAuxpowChainId = 0x0062; // 98 - Josh Wise!
+ consensus.fStrictChainId = true;
+ consensus.nAuxPowHeight = 0;
+
// message start is defined as the first 4 bytes of the sha256d of the block script
CHashWriter h(SER_DISK, 0);
h << consensus.signet_challenge;
@@ -417,6 +429,10 @@ public:
consensus.fSimplifiedRewards = true;
consensus.fShortEarlyCoinbase = false;
+ consensus.nAuxpowChainId = 0x0062; // 98 - Josh Wise!
+ consensus.fStrictChainId = true;
+ consensus.nAuxPowHeight = 0;
+
pchMessageStart[0] = 0xfa;
pchMessageStart[1] = 0xbf;
pchMessageStart[2] = 0xb5;
diff --git a/src/consensus/params.h b/src/consensus/params.h
index b7223b2fc..d16cb6338 100644
--- a/src/consensus/params.h
+++ b/src/consensus/params.h
@@ -95,6 +95,11 @@ struct Params {
bool fSimplifiedRewards;
bool fShortEarlyCoinbase;
+
+ /** Auxpow parameters */
+ int32_t nAuxpowChainId;
+ bool fStrictChainId;
+ int nAuxPowHeight; // 0 for "always on"
};
} // namespace Consensus