chainparams: Add BIP 44 coin type (as registered in SLIP 44)
This commit is contained in:
parent
4922d1c19a
commit
0ecdd0f30a
|
@ -82,6 +82,7 @@ public:
|
||||||
CMainParams() {
|
CMainParams() {
|
||||||
strNetworkID = "main";
|
strNetworkID = "main";
|
||||||
strCurrencyUnits = "ZEC";
|
strCurrencyUnits = "ZEC";
|
||||||
|
bip44CoinType = 133; // As registered in https://github.com/satoshilabs/slips/blob/master/slip-0044.md
|
||||||
consensus.fCoinbaseMustBeProtected = true;
|
consensus.fCoinbaseMustBeProtected = true;
|
||||||
consensus.nSubsidySlowStartInterval = 20000;
|
consensus.nSubsidySlowStartInterval = 20000;
|
||||||
consensus.nSubsidyHalvingInterval = 840000;
|
consensus.nSubsidyHalvingInterval = 840000;
|
||||||
|
@ -258,6 +259,7 @@ public:
|
||||||
CTestNetParams() {
|
CTestNetParams() {
|
||||||
strNetworkID = "test";
|
strNetworkID = "test";
|
||||||
strCurrencyUnits = "TAZ";
|
strCurrencyUnits = "TAZ";
|
||||||
|
bip44CoinType = 1;
|
||||||
consensus.fCoinbaseMustBeProtected = true;
|
consensus.fCoinbaseMustBeProtected = true;
|
||||||
consensus.nSubsidySlowStartInterval = 20000;
|
consensus.nSubsidySlowStartInterval = 20000;
|
||||||
consensus.nSubsidyHalvingInterval = 840000;
|
consensus.nSubsidyHalvingInterval = 840000;
|
||||||
|
@ -377,6 +379,7 @@ public:
|
||||||
CRegTestParams() {
|
CRegTestParams() {
|
||||||
strNetworkID = "regtest";
|
strNetworkID = "regtest";
|
||||||
strCurrencyUnits = "REG";
|
strCurrencyUnits = "REG";
|
||||||
|
bip44CoinType = 1;
|
||||||
consensus.fCoinbaseMustBeProtected = false;
|
consensus.fCoinbaseMustBeProtected = false;
|
||||||
consensus.nSubsidySlowStartInterval = 0;
|
consensus.nSubsidySlowStartInterval = 0;
|
||||||
consensus.nSubsidyHalvingInterval = 150;
|
consensus.nSubsidyHalvingInterval = 150;
|
||||||
|
|
|
@ -81,6 +81,7 @@ public:
|
||||||
unsigned int EquihashN() const { return nEquihashN; }
|
unsigned int EquihashN() const { return nEquihashN; }
|
||||||
unsigned int EquihashK() const { return nEquihashK; }
|
unsigned int EquihashK() const { return nEquihashK; }
|
||||||
std::string CurrencyUnits() const { return strCurrencyUnits; }
|
std::string CurrencyUnits() const { return strCurrencyUnits; }
|
||||||
|
uint32_t BIP44CoinType() const { return bip44CoinType; }
|
||||||
/** Make miner stop after a block is found. In RPC, don't return until nGenProcLimit blocks are generated */
|
/** Make miner stop after a block is found. In RPC, don't return until nGenProcLimit blocks are generated */
|
||||||
bool MineBlocksOnDemand() const { return fMineBlocksOnDemand; }
|
bool MineBlocksOnDemand() const { return fMineBlocksOnDemand; }
|
||||||
/** In the future use NetworkIDString() for RPC fields */
|
/** In the future use NetworkIDString() for RPC fields */
|
||||||
|
@ -114,6 +115,7 @@ protected:
|
||||||
std::string bech32HRPs[MAX_BECH32_TYPES];
|
std::string bech32HRPs[MAX_BECH32_TYPES];
|
||||||
std::string strNetworkID;
|
std::string strNetworkID;
|
||||||
std::string strCurrencyUnits;
|
std::string strCurrencyUnits;
|
||||||
|
uint32_t bip44CoinType;
|
||||||
CBlock genesis;
|
CBlock genesis;
|
||||||
std::vector<SeedSpec6> vFixedSeeds;
|
std::vector<SeedSpec6> vFixedSeeds;
|
||||||
bool fMiningRequiresPeers = false;
|
bool fMiningRequiresPeers = false;
|
||||||
|
|
Loading…
Reference in New Issue