mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
f'Chainparams: Unify CRegTestParams and CCustomParams'
This commit is contained in:
parent
c6ef55b23a
commit
6be1e70628
1 changed files with 2 additions and 2 deletions
|
|
@ -208,7 +208,7 @@ public:
|
|||
*/
|
||||
class CMainParams : public CCustomParams {
|
||||
public:
|
||||
CMainParams() : CCustomParams(CHAINPARAMS_OLD_MAIN)
|
||||
CMainParams(const std::string& chain) : CCustomParams(chain)
|
||||
{
|
||||
consensus.nRuleChangeActivationThreshold = 1916; // 95% of 2016
|
||||
consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
|
||||
|
|
@ -243,7 +243,7 @@ const CChainParams &Params() {
|
|||
std::unique_ptr<CChainParams> CreateChainParams(const std::string& chain)
|
||||
{
|
||||
if (chain == CBaseChainParams::MAIN)
|
||||
return std::unique_ptr<CChainParams>(new CMainParams());
|
||||
return std::unique_ptr<CChainParams>(new CMainParams(chain));
|
||||
return std::unique_ptr<CChainParams>(new CCustomParams(chain));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue