Advertisement
Guest User

chaimparams.cpp

a guest
Jan 4th, 2021
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 18.62 KB | None | 0 0
  1. // Copyright (c) 2010 Satoshi Nakamoto
  2. // Copyright (c) 2009-2018 The Bitcoin Core developers
  3. // Distributed under the MIT software license, see the accompanying
  4. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  5.  
  6. #include <chainparams.h>
  7.  
  8. #include <chainparamsseeds.h>
  9. #include <consensus/merkle.h>
  10. #include <tinyformat.h>
  11. #include <util/system.h>
  12. #include <util/strencodings.h>
  13. #include <versionbitsinfo.h>
  14.  
  15. #include <assert.h>
  16.  
  17. #include <boost/algorithm/string/classification.hpp>
  18. #include <boost/algorithm/string/split.hpp>
  19.  
  20. static CBlock CreateGenesisBlock(const char* pszTimestamp, const CScript& genesisOutputScript, uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
  21. {
  22.     CMutableTransaction txNew;
  23.     txNew.nVersion = 1;
  24.     txNew.vin.resize(1);
  25.     txNew.vout.resize(1);
  26.     txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) << std::vector<unsigned char>((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
  27.     txNew.vout[0].nValue = genesisReward;
  28.     txNew.vout[0].scriptPubKey = genesisOutputScript;
  29.  
  30.     CBlock genesis;
  31.     genesis.nTime    = nTime;
  32.     genesis.nBits    = nBits;
  33.     genesis.nNonce   = nNonce;
  34.     genesis.nVersion = nVersion;
  35.     genesis.vtx.push_back(MakeTransactionRef(std::move(txNew)));
  36.     genesis.hashPrevBlock.SetNull();
  37.     genesis.hashMerkleRoot = BlockMerkleRoot(genesis);
  38.     return genesis;
  39. }
  40.  
  41. /**
  42.  * Build the genesis block. Note that the output of its generation
  43.  * transaction cannot be spent since it did not originally exist in the
  44.  * database.
  45.  *
  46.  * CBlock(hash=000000000019d6, ver=1, hashPrevBlock=00000000000000, hashMerkleRoot=4a5e1e, nTime=1231006505, nBits=1d00ffff, nNonce=2083236893, vtx=1)
  47.  *   CTransaction(hash=4a5e1e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
  48.  *     CTxIn(COutPoint(000000, -1), coinbase 04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73)
  49.  *     CTxOut(nValue=50.00000000, scriptPubKey=0x5F1DF16B2B704C8A578D0B)
  50.  *   vMerkleTree: 4a5e1e
  51.  */
  52. static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
  53. {
  54.     const char* pszTimestamp = "G1 03/Jan /2021 India approves emergency use of Oxford vaccine and immunizer made in the country";
  55.     const CScript genesisOutputScript = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG;
  56.     return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward);
  57. }
  58.  
  59. /**
  60.  * Main network
  61.  */
  62. class CMainParams : public CChainParams {
  63. public:
  64.     CMainParams() {
  65.         strNetworkID = "main";
  66.         consensus.nSubsidyHalvingInterval = 840000;
  67.         consensus.BIP16Height = 218579; // 87afb798a3ad9378fcd56123c81fb31cfd9a8df4719b9774d71730c16315a092 - October 1, 2012
  68.         consensus.BIP34Height = 710000;
  69.         consensus.BIP34Hash = uint256S("fa09d204a83a768ed5a7c8d441fa62f2043abf420cff1226c7b4329aeb9d51cf");
  70.         consensus.BIP65Height = 918684; // bab3041e8977e0dc3eeff63fe707b92bde1dd449d8efafb248c27c8264cc311a
  71.         consensus.BIP66Height = 811879; // 7aceee012833fa8952f8835d8b1b3ae233cd6ab08fdb27a771d2bd7bdc491894
  72.         consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
  73.         consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // 3.5 days
  74.         consensus.nPowTargetSpacing = 2.5 * 60;
  75.         consensus.fPowAllowMinDifficultyBlocks = false;
  76.         consensus.fPowNoRetargeting = false;
  77.         consensus.nRuleChangeActivationThreshold = 6048; // 75% of 8064
  78.         consensus.nMinerConfirmationWindow = 8064; // nPowTargetTimespan / nPowTargetSpacing * 4
  79.         consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
  80.         consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
  81.         consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008
  82.  
  83.         // Deployment of BIP68, BIP112, and BIP113.
  84.         consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
  85.         consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1485561600; // January 28, 2017
  86.         consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1517356801; // January 31st, 2018
  87.  
  88.         // Deployment of SegWit (BIP141, BIP143, and BIP147)
  89.         consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
  90.         consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1485561600; // January 28, 2017
  91.         consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018
  92.  
  93.         // The best chain should have at least this much work.
  94.         consensus.nMinimumChainWork = uint256S("0x00");
  95.  
  96.         // By default assume that the signatures in ancestors of this block are valid.
  97.         consensus.defaultAssumeValid = uint256S("0x00fef8713b8f2c058c6980a756b24f5b8dcb9eb2328605b3be6ea58baf9ba06d"); //1683528
  98.  
  99.         /**
  100.          * The message start string is designed to be unlikely to occur in normal data.
  101.          * The characters are rarely used upper ASCII, not valid as UTF-8, and produce
  102.          * a large 32-bit integer with any alignment.
  103.          */
  104.         pchMessageStart[0] = 0xf1;
  105.         pchMessageStart[1] = 0xc4;
  106.         pchMessageStart[2] = 0xb3;
  107.         pchMessageStart[3] = 0xd2;
  108.         nDefaultPort = 2333;
  109.         nPruneAfterHeight = 100000;
  110.         m_assumed_blockchain_size = 22;
  111.         m_assumed_chain_state_size = 3;
  112.  
  113.        
  114.         genesis = CreateGenesisBlock(1609630317, 115800, 0x1e0ffff0, 1, 50 * COIN);
  115.         consensus.hashGenesisBlock = genesis.GetHash();
  116.         assert(consensus.hashGenesisBlock == uint256S("0xc04c5e4dce4b9f43c9a30e1bb25444a26b5438acdbafdd58a3da734ec81cb715"));
  117.         assert(genesis.hashMerkleRoot == uint256S("0x320b3649c83eaf5e53aa2281744becf6ee644046a2d97d10f418d8198a22ec9a"));
  118.  
  119.         // Note that of those which support the service bits prefix, most only support a subset of
  120.         // possible options.
  121.         // This is fine at runtime as we'll fall back to using them as a oneshot if they don't support the
  122.         // service bits we want, but we should get them updated to support all service bits wanted by any
  123.         // release ASAP to avoid it where possible.
  124.         vSeeds.emplace_back("");
  125.  
  126.         base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,25);
  127.         base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5);
  128.         base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,50);
  129.         base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>(1,176);
  130.         base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
  131.         base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
  132.  
  133.         bech32_hrp = "xpi";
  134.  
  135.         vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));
  136.  
  137.         fDefaultConsistencyChecks = false;
  138.         fRequireStandard = true;
  139.         fMineBlocksOnDemand = false;
  140.  
  141.         checkpointData = {
  142.             {
  143.                 {0, uint256S("0x")}
  144.             }
  145.         };
  146.  
  147.         chainTxData = ChainTxData{
  148.             // Data from rpc: getchaintxstats 4096 2cdba8c47858d34cf0e02dfb8733263a3ed8705b1663ec7c158783d77b93e7ee
  149.             // nTime     1565379143,
  150.             // nTxCount  36299075,
  151.             // dTxRate   0.388813310286546
  152.         };
  153.  
  154.         /* disable fallback fee on mainnet */
  155.         m_fallback_fee_enabled = false;
  156.     }
  157. };
  158.  
  159. /**
  160.  * Testnet (v3)
  161.  */
  162. class CTestNetParams : public CChainParams {
  163. public:
  164.     CTestNetParams() {
  165.         strNetworkID = "test";
  166.         consensus.nSubsidyHalvingInterval = 840000;
  167.         consensus.BIP16Height = 0; // always enforce P2SH BIP16 on testnet
  168.         consensus.BIP34Height = 76;
  169.         consensus.BIP34Hash = uint256S("8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573");
  170.         consensus.BIP65Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
  171.         consensus.BIP66Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
  172.         consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
  173.         consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // 3.5 days
  174.         consensus.nPowTargetSpacing = 2.5 * 60;
  175.         consensus.fPowAllowMinDifficultyBlocks = true;
  176.         consensus.fPowNoRetargeting = false;
  177.         consensus.nRuleChangeActivationThreshold = 1512; // 75% for testchains
  178.         consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
  179.         consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
  180.         consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
  181.         consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008
  182.  
  183.         // Deployment of BIP68, BIP112, and BIP113.
  184.         consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
  185.         consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1483228800; // January 1, 2017
  186.         consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1517356801; // January 31st, 2018
  187.  
  188.         // Deployment of SegWit (BIP141, BIP143, and BIP147)
  189.         consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
  190.         consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1483228800; // January 1, 2017
  191.         consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018
  192.  
  193.         // The best chain should have at least this much work.
  194.         consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000000000035ed7ece35dc93");
  195.  
  196.         // By default assume that the signatures in ancestors of this block are valid.
  197.         consensus.defaultAssumeValid = uint256S("0xf19dfbdc0e6c399ef45d315d89fc3e972dd8da74503252bacaf664f64d86e6f6"); //1174621
  198.  
  199.         pchMessageStart[0] = 0xfd;
  200.         pchMessageStart[1] = 0xd2;
  201.         pchMessageStart[2] = 0xc8;
  202.         pchMessageStart[3] = 0xf1;
  203.         nDefaultPort = 19335;
  204.         nPruneAfterHeight = 1000;
  205.         m_assumed_blockchain_size = 2;
  206.         m_assumed_chain_state_size = 1;
  207.  
  208.         genesis = CreateGenesisBlock(1609630317, 115800, 0x1e0ffff0, 1, 50 * COIN);
  209.         consensus.hashGenesisBlock = genesis.GetHash();
  210.         assert(consensus.hashGenesisBlock == uint256S("0xc04c5e4dce4b9f43c9a30e1bb25444a26b5438acdbafdd58a3da734ec81cb715"));
  211.         assert(genesis.hashMerkleRoot == uint256S("0x320b3649c83eaf5e53aa2281744becf6ee644046a2d97d10f418d8198a22ec9a"));
  212.  
  213.         vFixedSeeds.clear();
  214.         vSeeds.clear();
  215.         // nodes with support for servicebits filtering should be at the top
  216.         vSeeds.emplace_back("");
  217.  
  218.         base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,85);
  219.         base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
  220.         base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,58);
  221.         base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>(1,239);
  222.         base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
  223.         base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
  224.  
  225.         bech32_hrp = "tltc";
  226.  
  227.         vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
  228.  
  229.         fDefaultConsistencyChecks = false;
  230.         fRequireStandard = false;
  231.         fMineBlocksOnDemand = false;
  232.  
  233.         checkpointData = {
  234.             {
  235.                 { 0, uint256S("0x")}
  236.             }
  237.         };
  238.  
  239.         chainTxData = ChainTxData{
  240.             // Data from rpc: getchaintxstats 4096 e79561972208ba3a02c308482176b33f3ec841d4213ea7bbaa3f22b7c8a16f32
  241.             /* nTime    */ 1565582448,
  242.             /* nTxCount */ 2848910,
  243.             /* dTxRate  */ 0.02265200874042768
  244.         };
  245.  
  246.         /* enable fallback fee on testnet */
  247.         m_fallback_fee_enabled = true;
  248.     }
  249. };
  250.  
  251. /**
  252.  * Regression test
  253.  */
  254. class CRegTestParams : public CChainParams {
  255. public:
  256.     explicit CRegTestParams(const ArgsManager& args) {
  257.         strNetworkID = "regtest";
  258.         consensus.nSubsidyHalvingInterval = 150;
  259.         consensus.BIP16Height = 0;
  260.         consensus.BIP34Height = 500; // BIP34 activated on regtest (Used in functional tests)
  261.         consensus.BIP34Hash = uint256();
  262.         consensus.BIP65Height = 1351; // BIP65 activated on regtest (Used in functional tests)
  263.         consensus.BIP66Height = 1251; // BIP66 activated on regtest (Used in functional tests)
  264.         consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
  265.         consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // two weeks
  266.         consensus.nPowTargetSpacing = 2.5 * 60;
  267.         consensus.fPowAllowMinDifficultyBlocks = true;
  268.         consensus.fPowNoRetargeting = true;
  269.         consensus.nRuleChangeActivationThreshold = 108; // 75% for testchains
  270.         consensus.nMinerConfirmationWindow = 144; // Faster than normal for regtest (144 instead of 2016)
  271.         consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
  272.         consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0;
  273.         consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
  274.         consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
  275.         consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 0;
  276.         consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
  277.         consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
  278.         consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = Consensus::BIP9Deployment::ALWAYS_ACTIVE;
  279.         consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
  280.  
  281.         // The best chain should have at least this much work.
  282.         consensus.nMinimumChainWork = uint256S("0x00");
  283.  
  284.         // By default assume that the signatures in ancestors of this block are valid.
  285.         consensus.defaultAssumeValid = uint256S("0x00");
  286.  
  287.         pchMessageStart[0] = 0xfa;
  288.         pchMessageStart[1] = 0xbf;
  289.         pchMessageStart[2] = 0xb5;
  290.         pchMessageStart[3] = 0xda;
  291.         nDefaultPort = 19444;
  292.         nPruneAfterHeight = 1000;
  293.         m_assumed_blockchain_size = 0;
  294.         m_assumed_chain_state_size = 0;
  295.  
  296.         UpdateVersionBitsParametersFromArgs(args);
  297.  
  298.         genesis = CreateGenesisBlock(1609630317, 0, 0x207fffff, 1, 50 * COIN);
  299.         consensus.hashGenesisBlock = genesis.GetHash();
  300.         //assert(consensus.hashGenesisBlock == uint256S("0x"));
  301.         //assert(genesis.hashMerkleRoot == uint256S("0x"));
  302.  
  303.         vFixedSeeds.clear(); //!< Regtest mode doesn't have any fixed seeds.
  304.         vSeeds.clear();      //!< Regtest mode doesn't have any DNS seeds.
  305.  
  306.         fDefaultConsistencyChecks = true;
  307.         fRequireStandard = false;
  308.         fMineBlocksOnDemand = true;
  309.  
  310.         checkpointData = {
  311.             {
  312.                
  313.             }
  314.         };
  315.  
  316.         chainTxData = ChainTxData{
  317.             0,
  318.             0,
  319.             0
  320.         };
  321.  
  322.         base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);
  323.         base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
  324.         base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,58);
  325.         base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>(1,239);
  326.         base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
  327.         base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
  328.  
  329.         bech32_hrp = "rltc";
  330.  
  331.         /* enable fallback fee on regtest */
  332.         m_fallback_fee_enabled = true;
  333.     }
  334.  
  335.     /**
  336.      * Allows modifying the Version Bits regtest parameters.
  337.      */
  338.     void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
  339.     {
  340.         consensus.vDeployments[d].nStartTime = nStartTime;
  341.         consensus.vDeployments[d].nTimeout = nTimeout;
  342.     }
  343.     void UpdateVersionBitsParametersFromArgs(const ArgsManager& args);
  344. };
  345.  
  346. void CRegTestParams::UpdateVersionBitsParametersFromArgs(const ArgsManager& args)
  347. {
  348.     if (!args.IsArgSet("-vbparams")) return;
  349.  
  350.     for (const std::string& strDeployment : args.GetArgs("-vbparams")) {
  351.         std::vector<std::string> vDeploymentParams;
  352.         boost::split(vDeploymentParams, strDeployment, boost::is_any_of(":"));
  353.         if (vDeploymentParams.size() != 3) {
  354.             throw std::runtime_error("Version bits parameters malformed, expecting deployment:start:end");
  355.         }
  356.         int64_t nStartTime, nTimeout;
  357.         if (!ParseInt64(vDeploymentParams[1], &nStartTime)) {
  358.             throw std::runtime_error(strprintf("Invalid nStartTime (%s)", vDeploymentParams[1]));
  359.         }
  360.         if (!ParseInt64(vDeploymentParams[2], &nTimeout)) {
  361.             throw std::runtime_error(strprintf("Invalid nTimeout (%s)", vDeploymentParams[2]));
  362.         }
  363.         bool found = false;
  364.         for (int j=0; j < (int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j) {
  365.             if (vDeploymentParams[0] == VersionBitsDeploymentInfo[j].name) {
  366.                 UpdateVersionBitsParameters(Consensus::DeploymentPos(j), nStartTime, nTimeout);
  367.                 found = true;
  368.                 LogPrintf("Setting version bits activation parameters for %s to start=%ld, timeout=%ld\n", vDeploymentParams[0], nStartTime, nTimeout);
  369.                 break;
  370.             }
  371.         }
  372.         if (!found) {
  373.             throw std::runtime_error(strprintf("Invalid deployment (%s)", vDeploymentParams[0]));
  374.         }
  375.     }
  376. }
  377.  
  378. static std::unique_ptr<const CChainParams> globalChainParams;
  379.  
  380. const CChainParams &Params() {
  381.     assert(globalChainParams);
  382.     return *globalChainParams;
  383. }
  384.  
  385. std::unique_ptr<const CChainParams> CreateChainParams(const std::string& chain)
  386. {
  387.     if (chain == CBaseChainParams::MAIN)
  388.         return std::unique_ptr<CChainParams>(new CMainParams());
  389.     else if (chain == CBaseChainParams::TESTNET)
  390.         return std::unique_ptr<CChainParams>(new CTestNetParams());
  391.     else if (chain == CBaseChainParams::REGTEST)
  392.         return std::unique_ptr<CChainParams>(new CRegTestParams(gArgs));
  393.     throw std::runtime_error(strprintf("%s: Unknown chain %s.", __func__, chain));
  394. }
  395.  
  396. void SelectParams(const std::string& network)
  397. {
  398.     SelectBaseParams(network);
  399.     globalChainParams = CreateChainParams(network);
  400. }
  401.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement