Chainparams: Make parentGenesisBlockHash customizable

This commit is contained in:
Jorge Timón 2018-03-12 20:40:44 +01:00
parent aa876a8762
commit 477000128d
No known key found for this signature in database
GPG key ID: 8866C18EA1C944A2
2 changed files with 3 additions and 3 deletions

View file

@ -129,6 +129,8 @@ protected:
consensus.nMinimumChainWork = uint256S(GetArg("-con_nminimumchainwork", "0x00"));
// By default assume that the signatures in ancestors of this block are valid.
consensus.defaultAssumeValid = uint256S(GetArg("-con_defaultassumevalid", "0x00"));
// bitcoin regtest is the parent chain by default
parentGenesisBlockHash = uint256S(GetArg("-parentgenesisblockhash", "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206"));
nDefaultPort = GetArg("-ndefaultport", 7042);
nPruneAfterHeight = GetArg("-npruneafterheight", 1000);
@ -163,8 +165,6 @@ public:
pchMessageStart[2] = 0xb5;
pchMessageStart[3] = 0xda;
parentGenesisBlockHash = uint256S("0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206");
// Generate pegged Bitcoin asset
std::vector<unsigned char> commit = CommitToArguments(consensus, strNetworkID, genesisChallengeScript);
uint256 entropy;