Skip to content

Commit

Permalink
build: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenijM86 committed Jan 21, 2019
1 parent f30b6e9 commit caa6c0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/chainparams.cpp
Expand Up @@ -72,7 +72,7 @@ class CMainParams : public CChainParams {
strNetworkID = "main";
consensus.BIP16Height = 0;
consensus.BIP34Height = 0;
consensus.BIP34Hash = 6;
consensus.BIP34Hash = uint256S("6");
//ppcTODO - set above values to correct ones
consensus.powLimit = uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // ~arith_uint256(0) >> 32;
consensus.bnInitialHashTarget = uint256S("0000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // ~arith_uint256(0) >> 40;
Expand Down Expand Up @@ -174,7 +174,7 @@ class CTestNetParams : public CChainParams {
strNetworkID = "test";
consensus.BIP16Height = 0;
consensus.BIP34Height = 1;
consensus.BIP34Hash = 6;
consensus.BIP34Hash = uint256S("6");
//ppcTODO - set above values to correct ones
consensus.powLimit = uint256S("0000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // ~arith_uint256(0) >> 28;
consensus.bnInitialHashTarget = uint256S("00000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // ~arith_uint256(0) >> 29;
Expand Down Expand Up @@ -333,8 +333,8 @@ std::unique_ptr<CChainParams> CreateChainParams(const std::string& chain)
return std::unique_ptr<CChainParams>(new CMainParams());
else if (chain == CBaseChainParams::TESTNET)
return std::unique_ptr<CChainParams>(new CTestNetParams());
else if (chain == CBaseChainParams::REGTEST)
return std::unique_ptr<CChainParams>(new CRegTestParams());
// else if (chain == CBaseChainParams::REGTEST)
// return std::unique_ptr<CChainParams>(new CRegTestParams());
throw std::runtime_error(strprintf("%s: Unknown chain %s.", __func__, chain));
}

Expand Down

0 comments on commit caa6c0d

Please sign in to comment.