MCPcopy Create free account
hub / github.com/ElementsProject/elements / CLiquidV1Params

Method CLiquidV1Params

src/chainparams.cpp:1081–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079class CLiquidV1Params : public CChainParams {
1080public:
1081 explicit CLiquidV1Params(const ArgsManager& args)
1082 {
1083
1084 strNetworkID = "liquidv1";
1085 consensus.nSubsidyHalvingInterval = 150;
1086 consensus.BIP16Exception = uint256();
1087 consensus.BIP34Height = 0;
1088 consensus.BIP34Hash = uint256();
1089 consensus.BIP65Height = 0;
1090 consensus.BIP66Height = 0;
1091 consensus.CSVHeight = 0;
1092 consensus.SegwitHeight = 0;
1093 consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
1094 consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; // two weeks;
1095 consensus.nPowTargetSpacing = 60; // Minute block assumption
1096 consensus.fPowAllowMinDifficultyBlocks = true;
1097 consensus.fPowNoRetargeting = true;
1098 consensus.nRuleChangeActivationThreshold = 108;
1099 consensus.nMinerConfirmationWindow = 144;
1100
1101 consensus.nMinimumChainWork = uint256();
1102 consensus.defaultAssumeValid = uint256();
1103
1104 nPruneAfterHeight = 1000;
1105 fDefaultConsistencyChecks = false;
1106 fRequireStandard = true;
1107 m_is_test_chain = false;
1108
1109 m_assumed_blockchain_size = 3;
1110 m_assumed_chain_state_size = 1;
1111
1112 bech32_hrp = "ex"; // ex(plicit)
1113 blech32_hrp = "lq"; // l(i)q(uid)
1114 parent_bech32_hrp = "bc";
1115 parent_blech32_hrp = "bc"; // Doesn't exist but...
1116
1117 base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1, 57);
1118 base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1, 39);
1119 base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1, 128);
1120 base58Prefixes[BLINDED_ADDRESS]= std::vector<unsigned char>(1,12);
1121
1122 base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
1123 base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
1124
1125 base58Prefixes[PARENT_PUBKEY_ADDRESS] = std::vector<unsigned char>(1,0);
1126 base58Prefixes[PARENT_SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5);
1127
1128 pchMessageStart[0] = 0xfa;
1129 pchMessageStart[1] = 0xbf;
1130 pchMessageStart[2] = 0xb5;
1131 pchMessageStart[3] = 0xda;
1132
1133 nDefaultPort = 7042;
1134
1135 vSeeds.clear();
1136 vSeeds.emplace_back("seed.liquidnetwork.io");
1137 vSeeds.emplace_back("liquid.network.");
1138 vFixedSeeds = std::vector<uint8_t>(std::begin(pnSeed6_liquidv1), std::end(pnSeed6_liquidv1));

Callers

nothing calls this directly

Calls 15

uint256SFunction · 0.85
beginFunction · 0.85
endFunction · 0.85
ParseHexFunction · 0.85
CommitToArgumentsFunction · 0.85
GenerateAssetEntropyFunction · 0.85
CalculateAssetFunction · 0.85
CAssetClass · 0.85
CreateGenesisBlockFunction · 0.85
emplace_backMethod · 0.80
GetBoolArgMethod · 0.80

Tested by

no test coverage detected