Skip to content

Conversation

@satoshinakamoto007
Copy link
Member

         {
             ++genesis.nNonce;
             if (genesis.nNonce == 0)
             {
                 LogPrintf("NONCE WRAPPED, incrementing time");
                 std::cout << std::string("NONCE WRAPPED, incrementing time:\n");
                 ++genesis.nTime;
             }
             if (genesis.nNonce % 10000 == 0)
             {
                 LogPrintf("Mainnet: nonce %08u: hash = %s \n", genesis.nNonce, genesis.GetHash().ToString().c_str());
                 // std::cout << strNetworkID << " nonce: " << genesis.nNonce << " time: " << genesis.nTime << " hash: " << genesis.GetHash().ToString().c_str() << "\n";
             }
         }
         std::cout << "Mainnet ---\n";
         std::cout << "  nonce: " << genesis.nNonce <<  "\n";
         std::cout << "   time: " << genesis.nTime << "\n";
         std::cout << "   hash: " << genesis.GetHash().ToString().c_str() << "\n";
         std::cout << "   merklehash: "  << genesis.hashMerkleRoot.ToString().c_str() << "\n";
         // Mainnet --- nonce: 296277 time: 1390095618 hash: 000000bdd771b14e5a031806292305e563956ce2584278de414d9965f6ab54b0
     }
     std::cout << std::string("Finished calculating Mainnet Genesis Block:\n");

*/

//printf("%s\n",consensus.hashGenesisBlock.Tostring().c_str());
std::cout << std::string("ENTER:\n");
assert(consensus.hashGenesisBlock == uint256S("0x00000000b2c50d03d4d0bdd38681775ce522f137518145d6b3c913b7dd4423e5"));
assert(genesis.hashMerkleRoot == uint256S("0xf8621e34b0dcd43361fe589702e06aa79992229bfbca57d058d8561635c30fbe"));
std::cout << std::string("PASSED:\n");

     printf("min nBit:  %08x\n", consensus.powLimit);

     // Note that of those with the service bits flag, most only support a subset of possible options
     //vSeeds.emplace_back("seed-a.stonicacoin.loshan.co.uk", true);
     //vSeeds.emplace_back("dnsseed.thrasher.io", true);
     //vSeeds.emplace_back("dnsseed.stonicacointools.com", true);
     //vSeeds.emplace_back("dnsseed.stonicacoinpool.org", true);
     //vSeeds.emplace_back("dnsseed.koin-project.com", false);

     base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,127);
     base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,65);
     base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,56);
     base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>(1,176);
     base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
     base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};

     vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));

     fDefaultConsistencyChecks = false;
     fRequireStandard = true;
     fMineBlocksOnDemand = false;

     checkpointData = (CCheckpointData) {
         {
             {  0, uint256S("0x00000000b2c50d03d4d0bdd38681775ce522f137518145d6b3c913b7dd4423e5")},

         }
     };

     chainTxData = ChainTxData{
         // Data as of block db42d00d824950a125f9b08b6b6c282c484781562fa8b3bd29d6ce4a2627c348 (height 1259851).
         1502955334, // * UNIX timestamp of last known number of transactions
         1,  // * total number of transactions between genesis and that timestamp
                 //   (the tx=... number in the SetBestChain debug.log lines)
         0.00     // * estimated number of transactions per second after that timestamp
     };
 }

};

/**

  • Testnet (v3)
    */
    class CTestNetParams : public CChainParams {
    public:
    CTestNetParams() {
    strNetworkID = "test";
    consensus.nSubsidyHalvingInterval = 840000;
    consensus.BIP34Height = 76;
    consensus.BIP34Hash = uint256S("8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573");
    consensus.BIP65Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
    consensus.BIP66Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
    consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
    consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // 3.5 days
    consensus.nPowTargetSpacing = 2.5 * 60;
    consensus.fPowAllowMinDifficultyBlocks = true;
    consensus.fPowNoRetargeting = false;
    consensus.nRuleChangeActivationThreshold = 1512; // 75% for testchains
    consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008

     // Deployment of BIP68, BIP112, and BIP113.
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1483228800; // January 1, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1517356801; // January 31st, 2018
    
     // Deployment of SegWit (BIP141, BIP143, and BIP147)
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1483228800; // January 1, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018
    
     // The best chain should have at least this much work.
     consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000000000000364b0cbc3568");
    
     // By default assume that the signatures in ancestors of this block are valid.
     consensus.defaultAssumeValid = uint256S("0xad8ff6c2f5580d2b50bd881e11312425ea84fa99f322bf132beb722f97971bba"); //153490
    
     pchMessageStart[0] = 0xfd;
     pchMessageStart[1] = 0xd2;
     pchMessageStart[2] = 0xc8;
     pchMessageStart[3] = 0xf1;
     nDefaultPort = 19335;
     nPruneAfterHeight = 1000;
    
     genesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
     consensus.hashGenesisBlock = genesis.GetHash();
     //assert(consensus.hashGenesisBlock == uint256S("0x"));
     //assert(genesis.hashMerkleRoot == uint256S("0x"));
    
     vFixedSeeds.clear();
     vSeeds.clear();
     // nodes with support for servicebits filtering should be at the top
     //vSeeds.emplace_back("testnet-seed.stonicacointools.com", true);
     //vSeeds.emplace_back("seed-b.stonicacoin.loshan.co.uk", true);
     //vSeeds.emplace_back("dnsseed-testnet.thrasher.io", true);
    
     base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);
     base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
     base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,58);
     base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>(1,239);
     base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
     base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
    
     vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
    
     fDefaultConsistencyChecks = false;
     fRequireStandard = false;
     fMineBlocksOnDemand = false;
    
     checkpointData = (CCheckpointData) {
         {
             {0, uint256S("")},
         }
     };
    
     chainTxData = ChainTxData{
         // Data as of block 3351b6229da00b47ad7a8d7e1323b0e2874744b5296e3d6448293463ab758624 (height 153489)
         //1502953751,
         //382986,
         //0.01
     };
    

    }
    };

/**

  • Regression test
    */
    class CRegTestParams : public CChainParams {
    public:
    CRegTestParams() {
    strNetworkID = "regtest";
    consensus.nSubsidyHalvingInterval = 150;
    consensus.BIP34Height = 100000000; // BIP34 has not activated on regtest (far in the future so block v1 are not rejected in tests)
    consensus.BIP34Hash = uint256();
    consensus.BIP65Height = 1351; // BIP65 activated on regtest (Used in rpc activation tests)
    consensus.BIP66Height = 1251; // BIP66 activated on regtest (Used in rpc activation tests)
    consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
    consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // two weeks
    consensus.nPowTargetSpacing = 2.5 * 60;
    consensus.fPowAllowMinDifficultyBlocks = true;
    consensus.fPowNoRetargeting = true;
    consensus.nRuleChangeActivationThreshold = 108; // 75% for testchains
    consensus.nMinerConfirmationWindow = 144; // Faster than normal for regtest (144 instead of 2016)
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0;
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 999999999999ULL;
    consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
    consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 0;
    consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 999999999999ULL;
    consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
    consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 0;
    consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 999999999999ULL;

     // The best chain should have at least this much work.
     consensus.nMinimumChainWork = uint256S("0x00");
    
     // By default assume that the signatures in ancestors of this block are valid.
     consensus.defaultAssumeValid = uint256S("0x00");
    
     pchMessageStart[0] = 0xfa;
     pchMessageStart[1] = 0xbf;
     pchMessageStart[2] = 0xb5;
     pchMessageStart[3] = 0xda;
     nDefaultPort = 19444;
     nPruneAfterHeight = 1000;
    
     genesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
     consensus.hashGenesisBlock = genesis.GetHash();
     assert(consensus.hashGenesisBlock == uint256S("0x9"));
     assert(genesis.hashMerkleRoot == uint256S("0x"));
    
     vFixedSeeds.clear(); //!< Regtest mode doesn't have any fixed seeds.
    

// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:14

  •          // This will figure out a valid hash and Nonce if you're
    
  •          ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> vSeeds.clear(); //!< Regtest mode doesn't have any DNS seeds.

     fDefaultConsistencyChecks = true;
     fRequireStandard = false;
     fMineBlocksOnDemand = true;

     checkpointData = (CCheckpointData) {
         {
             {0, uint256S("530827f38f93b43ed12af0b3ad25a288dc02ed74d6d7857862df51fc56c416f9")},
         }
     };

     chainTxData = ChainTxData{
         0,
         0,
         0
     };

     base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);
     base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
     base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,58);
     base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>(1,239);
     base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
     base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
 }

};

static std::unique_ptr globalChainParams;

const CChainParams &Params() {
assert(globalChainParams);
return *globalChainParams;
}

std::unique_ptr CreateChainParams(const std::string& chain)
{
if (chain == CBaseChainParams::MAIN)
return std::unique_ptr(new CMainParams());
else if (chain == CBaseChainParams::TESTNET)
return std::unique_ptr(new CTestNetParams());
else if (chain == CBaseChainParams::REGTEST)
return std::unique_ptr(new CRegTestParams());
throw std::runtime_error(strprintf("%s: Unknown chain %s.", func, chain));
}

void SelectParams(const std::string& network)
{
SelectBaseParams(network);
globalChainParams = CreateChainParams(network);
}

void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
{
globalChainParams->UpdateVersionBitsParameters(d, nStartTime, nTimeout);// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "chainparams.h"
#include "consensus/merkle.h"

#include "tinyformat.h"
#include "util.h"
#include "utilstrencodings.h"

#include <assert.h>

#include "chainparamsseeds.h"
#include "arith_uint256.h"

static CBlock CreateGenesisBlock(const char* pszTimestamp, const CScript& genesisOutputScript, uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
{
CMutableTransaction txNew;
txNew.nVersion = 1;
txNew.vin.resize(1);
txNew.vout.resize(1);
txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) << std::vector((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
txNew.vout[0].nValue = genesisReward;
txNew.vout[0].scriptPubKey = genesisOutputScript;

 CBlock genesis;
 genesis.nTime    = nTime;
 genesis.nBits    = nBits;
 genesis.nNonce   = nNonce;
 genesis.nVersion = nVersion;
 genesis.vtx.push_back(MakeTransactionRef(std::move(txNew)));
 genesis.hashPrevBlock.SetNull();
 genesis.hashMerkleRoot = BlockMerkleRoot(genesis);
 return genesis;

}

/**

  • Build the genesis block. Note that the output of its generation
  • transaction cannot be spent since it did not originally exist in the
  • database.
  • CBlock(hash=000000000019d6, ver=1, hashPrevBlock=00000000000000, hashMerkleRoot=4a5e1e, nTime=1231006505, nBits=1d00ffff, *nNonce=2083236893, vtx=1)
  • CTransaction(hash=4a5e1e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
  • CTxIn(COutPoint(000000, -1), coinbase *04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420**666f722062616e6b73)
    
  • CTxOut(nValue=50.00000000, scriptPubKey=0x5F1DF16B2B704C8A578D0B)
    
  • vMerkleTree: 4a5e1e
    */

static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
{
const char* pszTimestamp = "Tehran Times, Stonica wins finally";
const CScript genesisOutputScript = CScript() << ParseHex("040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHECKSIG;
return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward);
}

void CChainParams::UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
{
consensus.vDeployments[d].nStartTime = nStartTime;
consensus.vDeployments[d].nTimeout = nTimeout;
}

/**

  • Main network
    /
    /
    *
  • What makes a good checkpoint block?
    • Is surrounded by blocks with reasonable timestamps
  • (no blocks before with a timestamp after, none after with
  • timestamp before)
    • Contains no strange transactions
      */

class CMainParams : public CChainParams {
public:
CMainParams() {
strNetworkID = "main";
consensus.nSubsidyHalvingInterval = 840000;
consensus.BIP34Height = 710000;
consensus.BIP34Hash = uint256S("00000000b2c50d03d4d0bdd38681775ce522f137518145d6b3c913b7dd4423e5");
consensus.BIP65Height = 918684; // bab3041e8977e0dc3eeff63fe707b92bde1dd449d8efafb248c27c8264cc311a
consensus.BIP66Height = 811879; // 7aceee012833fa8952f8835d8b1b3ae233cd6ab08fdb27a771d2bd7bdc491894
consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // 3.5 days
consensus.nPowTargetSpacing = 2.5 * 60;
consensus.fPowAllowMinDifficultyBlocks = false;
consensus.fPowNoRetargeting = false;
consensus.nRuleChangeActivationThreshold = 6048; // 75% of 8064
consensus.nMinerConfirmationWindow = 8064; // nPowTargetTimespan / nPowTargetSpacing * 4
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008

     // Deployment of BIP68, BIP112, and BIP113.
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1485561600; // January 28, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1517356801; // January 31st, 2018

     // Deployment of SegWit (BIP141, BIP143, and BIP147)
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1485561600; // January 28, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018

     // The best chain should have at least this much work.
     consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000000ba50a60f8b56c7fe0");

     // By default assume that the signatures in ancestors of this block are valid.
     consensus.defaultAssumeValid = uint256S("0x29c8c00e1a5f446a6364a29633d3f1ee16428d87c8d3851a1c570be8170b04c2"); //1259849

     /**
      * The message start string is designed to be unlikely to occur in normal data.
      * The characters are rarely used upper ASCII, not valid as UTF-8, and produce
      * a large 32-bit integer with any alignment.
      */
     pchMessageStart[0] = 0x0b;
     pchMessageStart[1] = 0xd0;
     pchMessageStart[2] = 0xb6;
     pchMessageStart[3] = 0xdb;
     nDefaultPort = 9335;
     nPruneAfterHeight = 100000;

//static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
genesis = CreateGenesisBlock(1511279793, 1251189192, 0x1d00ffff , 1, 50 * COIN);
consensus.hashGenesisBlock = genesis.GetHash();

/*
// calculate Genesis Block
// Reset genesis
consensus.hashGenesisBlock = uint256S("0x");
std::cout << std::string("Begin calculating Mainnet Genesis Block:\n");
if (true && (genesis.GetHash() != consensus.hashGenesisBlock)) {
LogPrintf("Calculating Mainnet Genesis Block:\n");
arith_uint256 hashTarget = arith_uint256().SetCompact(genesis.nBits);
uint256 hash;
genesis.nNonce = 0;
// This will figure out a valid hash and Nonce if you're
At line:1 char:23

  •      vSeeds.clear();      //!< Regtest mode doesn't have any DNS  ...
    
  •                   ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32> // creating a different genesis block:
// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:14

  •          // creating a different genesis block:
    
  •          ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> // uint256 hashTarget = CBigNum().SetCompact(genesis.nBits).getuint256();
At line:1 char:46

  •          // uint256 hashTarget = CBigNum().SetCompact(genesis.nBi ...
    
  •                                          ~
    

An expression was expected after '('.
At line:1 char:59

  •          // uint256 hashTarget = CBigNum().SetCompact(genesis.nBi ...
    
  •                                                       ~
    

Missing ')' in method call.
At line:1 char:72

  • ... // uint256 hashTarget = CBigNum().SetCompact(genesis.nBits).getuint ...
  •                                                             ~
    

Unexpected token ')' in expression or statement.
At line:1 char:85

  • ... int256 hashTarget = CBigNum().SetCompact(genesis.nBits).getuint256();
  •                                                                    ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32> // hashTarget.SetCompact(genesis.nBits, &fNegative, &fOverflow).getuint256();
At line:1 char:52

  •          // hashTarget.SetCompact(genesis.nBits, &fNegative, &fOv ...
    
  •                                                ~
    

Missing argument in parameter list.
At line:1 char:54

  •          // hashTarget.SetCompact(genesis.nBits, &fNegative, &fOv ...
    
  •                                                  ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At line:1 char:65

  • ... // hashTarget.SetCompact(genesis.nBits, &fNegative, &fOverf ...
  •                                                              ~
    

Missing expression after ',' in pipeline element.
At line:1 char:66

  • ... // hashTarget.SetCompact(genesis.nBits, &fNegative, &fOverflo ...
  •                                                             ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Windows\system32> // while (genesis.GetHash() > hashTarget)
At line:1 char:40

  •          // while (genesis.GetHash() > hashTarget)
    
  •                                    ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32> while (UintToArith256(genesis.GetHash()) > hashTarget)

         {
             ++genesis.nNonce;
             if (genesis.nNonce == 0)
             {
                 LogPrintf("NONCE WRAPPED, incrementing time");
                 std::cout << std::string("NONCE WRAPPED, incrementing time:\n");
                 ++genesis.nTime;
             }
             if (genesis.nNonce % 10000 == 0)
             {
                 LogPrintf("Mainnet: nonce %08u: hash = %s \n", genesis.nNonce, genesis.GetHash().ToString().c_str());

At line:1 char:52

  •          while (UintToArith256(genesis.GetHash()) > hashTarget)
    
  •                                                ~
    

An expression was expected after '('.
At line:3 char:20

  •              ++genesis.nNonce;
    
  •                ~
    

Missing expression after unary operator '++'.
At line:3 char:20

  •              ++genesis.nNonce;
    
  •                ~~~~~~~~~~~~~~
    

Unexpected token 'genesis.nNonce' in expression or statement.
At line:7 char:33

  •                  std::cout << std::string("NONCE WRAPPED, increme ...
    
  •                             ~
    

Missing file specification after redirection operator.
At line:7 char:32

  •                  std::cout << std::string("NONCE WRAPPED, increme ...
    
  •                            ~
    

The '<' operator is reserved for future use.
At line:7 char:33

  •                  std::cout << std::string("NONCE WRAPPED, increme ...
    
  •                             ~
    

The '<' operator is reserved for future use.
At line:8 char:24

  •                  ++genesis.nTime;
    
  •                    ~
    

Missing expression after unary operator '++'.
At line:8 char:24

  •                  ++genesis.nTime;
    
  •                    ~~~~~~~~~~~~~
    

Unexpected token 'genesis.nTime' in expression or statement.
At line:12 char:68

  • ... LogPrintf("Mainnet: nonce %08u: hash = %s \n", genesis ...
  •                                                              ~
    

Missing expression after ','.
At line:12 char:69

  • ... LogPrintf("Mainnet: nonce %08u: hash = %s \n", genesis.nNonce, genesi ...
  •                                                ~~~~~~~~~~~~~~
    

Unexpected token 'genesis.nNonce' in expression or statement.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32> // std::cout << strNetworkID << " nonce: " << genesis.nNonce << " time: " << genesis.nTime << " hash: " << genesis.GetHash().ToString().c_str() << "\n";
At line:1 char:36

  •                  // std::cout << strNetworkID << " nonce: " << ge ...
    
  •                                ~
    

Missing file specification after redirection operator.
At line:1 char:35

  •                  // std::cout << strNetworkID << " nonce: " << ge ...
    
  •                               ~
    

The '<' operator is reserved for future use.
At line:1 char:36

  •                  // std::cout << strNetworkID << " nonce: " << ge ...
    
  •                                ~
    

The '<' operator is reserved for future use.
At line:1 char:52

  •                  // std::cout << strNetworkID << " nonce: " << ge ...
    
  •                                                ~
    

Missing file specification after redirection operator.
At line:1 char:51

  •                  // std::cout << strNetworkID << " nonce: " << ge ...
    
  •                                               ~
    

The '<' operator is reserved for future use.
At line:1 char:52

  •                  // std::cout << strNetworkID << " nonce: " << ge ...
    
  •                                                ~
    

The '<' operator is reserved for future use.
At line:1 char:66

  • ... // std::cout << strNetworkID << " nonce: " << genesi ...
  •                                                              ~
    

Missing file specification after redirection operator.
At line:1 char:65

  • ... // std::cout << strNetworkID << " nonce: " << genesi ...
  •                                                             ~
    

The '<' operator is reserved for future use.
At line:1 char:66

  • ... // std::cout << strNetworkID << " nonce: " << genesis ...
  •                                                             ~
    

The '<' operator is reserved for future use.
At line:1 char:84

  • ... / std::cout << strNetworkID << " nonce: " << genesis.nNonce << " time ...
  •                                                              ~
    

Missing file specification after redirection operator.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32> }
At line:1 char:18

  •              }
    
  •              ~
    

Unexpected token '}' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32> }
At line:1 char:14

  •          }
    
  •          ~
    

Unexpected token '}' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32> std::cout << "Mainnet ---\n";
At line:1 char:25

  •          std::cout << "Mainnet ---\n";
    
  •                     ~
    

Missing file specification after redirection operator.
At line:1 char:24

  •          std::cout << "Mainnet ---\n";
    
  •                    ~
    

The '<' operator is reserved for future use.
At line:1 char:25

  •          std::cout << "Mainnet ---\n";
    
  •                     ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32> std::cout << " nonce: " << genesis.nNonce << "\n";
At line:1 char:25

  •          std::cout << "  nonce: " << genesis.nNonce <<  "\n";
    
  •                     ~
    

Missing file specification after redirection operator.
At line:1 char:24

  •          std::cout << "  nonce: " << genesis.nNonce <<  "\n";
    
  •                    ~
    

The '<' operator is reserved for future use.
At line:1 char:25

  •          std::cout << "  nonce: " << genesis.nNonce <<  "\n";
    
  •                     ~
    

The '<' operator is reserved for future use.
At line:1 char:40

  •          std::cout << "  nonce: " << genesis.nNonce <<  "\n";
    
  •                                    ~
    

Missing file specification after redirection operator.
At line:1 char:39

  •          std::cout << "  nonce: " << genesis.nNonce <<  "\n";
    
  •                                   ~
    

The '<' operator is reserved for future use.
At line:1 char:40

  •          std::cout << "  nonce: " << genesis.nNonce <<  "\n";
    
  •                                    ~
    

The '<' operator is reserved for future use.
At line:1 char:58

  •          std::cout << "  nonce: " << genesis.nNonce <<  "\n";
    
  •                                                      ~
    

Missing file specification after redirection operator.
At line:1 char:57

  •          std::cout << "  nonce: " << genesis.nNonce <<  "\n";
    
  •                                                     ~
    

The '<' operator is reserved for future use.
At line:1 char:58

  •          std::cout << "  nonce: " << genesis.nNonce <<  "\n";
    
  •                                                      ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32> std::cout << " time: " << genesis.nTime << "\n";
At line:1 char:25

  •          std::cout << "   time: " << genesis.nTime << "\n";
    
  •                     ~
    

Missing file specification after redirection operator.
At line:1 char:24

  •          std::cout << "   time: " << genesis.nTime << "\n";
    
  •                    ~
    

The '<' operator is reserved for future use.
At line:1 char:25

  •          std::cout << "   time: " << genesis.nTime << "\n";
    
  •                     ~
    

The '<' operator is reserved for future use.
At line:1 char:40

  •          std::cout << "   time: " << genesis.nTime << "\n";
    
  •                                    ~
    

Missing file specification after redirection operator.
At line:1 char:39

  •          std::cout << "   time: " << genesis.nTime << "\n";
    
  •                                   ~
    

The '<' operator is reserved for future use.
At line:1 char:40

  •          std::cout << "   time: " << genesis.nTime << "\n";
    
  •                                    ~
    

The '<' operator is reserved for future use.
At line:1 char:57

  •          std::cout << "   time: " << genesis.nTime << "\n";
    
  •                                                     ~
    

Missing file specification after redirection operator.
At line:1 char:56

  •          std::cout << "   time: " << genesis.nTime << "\n";
    
  •                                                    ~
    

The '<' operator is reserved for future use.
At line:1 char:57

  •          std::cout << "   time: " << genesis.nTime << "\n";
    
  •                                                     ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32> std::cout << " hash: " << genesis.GetHash().ToString().c_str() << "\n";
At line:1 char:25

  •          std::cout << "   hash: " << genesis.GetHash().ToString() ...
    
  •                     ~
    

Missing file specification after redirection operator.
At line:1 char:24

  •          std::cout << "   hash: " << genesis.GetHash().ToString() ...
    
  •                    ~
    

The '<' operator is reserved for future use.
At line:1 char:25

  •          std::cout << "   hash: " << genesis.GetHash().ToString() ...
    
  •                     ~
    

The '<' operator is reserved for future use.
At line:1 char:40

  •          std::cout << "   hash: " << genesis.GetHash().ToString() ...
    
  •                                    ~
    

Missing file specification after redirection operator.
At line:1 char:39

  •          std::cout << "   hash: " << genesis.GetHash().ToString() ...
    
  •                                   ~
    

The '<' operator is reserved for future use.
At line:1 char:40

  •          std::cout << "   hash: " << genesis.GetHash().ToString() ...
    
  •                                    ~
    

The '<' operator is reserved for future use.
At line:1 char:58

  •          std::cout << "   hash: " << genesis.GetHash().ToString() ...
    
  •                                                      ~
    

An expression was expected after '('.
At line:1 char:80

  • ... :cout << " hash: " << genesis.GetHash().ToString().c_str() << "\n";
  •                                                               ~
    

Missing file specification after redirection operator.
At line:1 char:79

  • ... :cout << " hash: " << genesis.GetHash().ToString().c_str() << "\n";
  •                                                              ~
    

The '<' operator is reserved for future use.
At line:1 char:80

  • ... :cout << " hash: " << genesis.GetHash().ToString().c_str() << "\n";
  •                                                               ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32> std::cout << " merklehash: " << genesis.hashMerkleRoot.ToString().c_str() << "\n";
At line:1 char:25

  •          std::cout << "   merklehash: "  << genesis.hashMerkleRoo ...
    
  •                     ~
    

Missing file specification after redirection operator.
At line:1 char:24

  •          std::cout << "   merklehash: "  << genesis.hashMerkleRoo ...
    
  •                    ~
    

The '<' operator is reserved for future use.
At line:1 char:25

  •          std::cout << "   merklehash: "  << genesis.hashMerkleRoo ...
    
  •                     ~
    

The '<' operator is reserved for future use.
At line:1 char:47

  •          std::cout << "   merklehash: "  << genesis.hashMerkleRoo ...
    
  •                                           ~
    

Missing file specification after redirection operator.
At line:1 char:46

  •          std::cout << "   merklehash: "  << genesis.hashMerkleRoo ...
    
  •                                          ~
    

The '<' operator is reserved for future use.
At line:1 char:47

  •          std::cout << "   merklehash: "  << genesis.hashMerkleRoo ...
    
  •                                           ~
    

The '<' operator is reserved for future use.
At line:1 char:81

  • ... out << " merklehash: " << genesis.hashMerkleRoot.ToString().c_str( ...
  •                                                              ~
    

An expression was expected after '('.
At line:1 char:92

  • ... merklehash: " << genesis.hashMerkleRoot.ToString().c_str() << "\n";
  •                                                               ~
    

Missing file specification after redirection operator.
At line:1 char:91

  • ... merklehash: " << genesis.hashMerkleRoot.ToString().c_str() << "\n";
  •                                                              ~
    

The '<' operator is reserved for future use.
At line:1 char:92

  • ... merklehash: " << genesis.hashMerkleRoot.ToString().c_str() << "\n";
  •                                                               ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32> // Mainnet --- nonce: 296277 time: 1390095618 hash: 000000bdd771b14e5a031806292305e563956ce2584278de414d9965f6ab54b0
// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:14

  •          // Mainnet --- nonce: 296277 time: 1390095618 hash: 0000 ...
    
  •          ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> }
At line:1 char:10

  •      }
    
  •      ~
    

Unexpected token '}' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32> std::cout << std::string("Finished calculating Mainnet Genesis Block:\n");
At line:1 char:21

  •      std::cout << std::string("Finished calculating Mainnet Genes ...
    
  •                 ~
    

Missing file specification after redirection operator.
At line:1 char:20

  •      std::cout << std::string("Finished calculating Mainnet Genes ...
    
  •                ~
    

The '<' operator is reserved for future use.
At line:1 char:21

  •      std::cout << std::string("Finished calculating Mainnet Genes ...
    
  •                 ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> */
/ : The term '/' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:2

  • */
  • ~~
    • CategoryInfo : ObjectNotFound: (*/:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> //printf("%s\n",consensus.hashGenesisBlock.Tostring().c_str());
At line:1 char:18

  • //printf("%s\n",consensus.hashGenesisBlock.Tostring().c_str());
  •              ~
    

Missing expression after ','.
At line:1 char:18

  • //printf("%s\n",consensus.hashGenesisBlock.Tostring().c_str());
  •              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

Unexpected token 'consensus.hashGenesisBlock.Tostring' in expression or statement.
At line:1 char:18

  • //printf("%s\n",consensus.hashGenesisBlock.Tostring().c_str());
  •              ~
    

Missing closing ')' in expression.
At line:1 char:54

  • //printf("%s\n",consensus.hashGenesisBlock.Tostring().c_str());
  •                                                  ~
    

An expression was expected after '('.
At line:1 char:63

  • //printf("%s\n",consensus.hashGenesisBlock.Tostring().c_str());
  •                                                           ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32> std::cout << std::string("ENTER:\n");
At line:1 char:14

  • std::cout << std::string("ENTER:\n");
  •          ~
    

Missing file specification after redirection operator.
At line:1 char:13

  • std::cout << std::string("ENTER:\n");
  •         ~
    

The '<' operator is reserved for future use.
At line:1 char:14

  • std::cout << std::string("ENTER:\n");
  •          ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32> assert(consensus.hashGenesisBlock == uint256S("0x00000000b2c50d03d4d0bdd38681775ce522f137518145d6b3c913b7dd4423e5"));
consensus.hashGenesisBlock : The term 'consensus.hashGenesisBlock' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At line:1 char:16

  •     assert(consensus.hashGenesisBlock == uint256S("0x00000000b2c5 ...
    
  •            ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.hashGenesisBlock:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> assert(genesis.hashMerkleRoot == uint256S("0xf8621e34b0dcd43361fe589702e06aa79992229bfbca57d058d8561635c30fbe"));
genesis.hashMerkleRoot : The term 'genesis.hashMerkleRoot' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was in
cluded, verify that the path is correct and try again.
At line:1 char:17

  •      assert(genesis.hashMerkleRoot == uint256S("0xf8621e34b0dcd43 ...
    
  •             ~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (genesis.hashMerkleRoot:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> std::cout << std::string("PASSED:\n");
At line:1 char:17

  •  std::cout << std::string("PASSED:\n");
    
  •             ~
    

Missing file specification after redirection operator.
At line:1 char:16

  •  std::cout << std::string("PASSED:\n");
    
  •            ~
    

The '<' operator is reserved for future use.
At line:1 char:17

  •  std::cout << std::string("PASSED:\n");
    
  •             ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32>
PS C:\Windows\system32> printf("min nBit: %08x\n", consensus.powLimit);
At line:1 char:37

  •      printf("min nBit:  %08x\n", consensus.powLimit);
    
  •                                 ~
    

Missing expression after ','.
At line:1 char:38

  •      printf("min nBit:  %08x\n", consensus.powLimit);
    
  •                                  ~~~~~~~~~~~~~~~~~~
    

Unexpected token 'consensus.powLimit' in expression or statement.
At line:1 char:37

  •      printf("min nBit:  %08x\n", consensus.powLimit);
    
  •                                 ~
    

Missing closing ')' in expression.
At line:1 char:56

  •      printf("min nBit:  %08x\n", consensus.powLimit);
    
  •                                                    ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32>
PS C:\Windows\system32> // Note that of those with the service bits flag, most only support a subset of possible options
// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:10

  •      // Note that of those with the service bits flag, most only  ...
    
  •      ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> //vSeeds.emplace_back("seed-a.stonicacoin.loshan.co.uk", true);
At line:1 char:66

  • ... //vSeeds.emplace_back("seed-a.stonicacoin.loshan.co.uk", true);
  •                                                               ~
    

Missing expression after ','.
At line:1 char:67

  • ... //vSeeds.emplace_back("seed-a.stonicacoin.loshan.co.uk", true);
  •                                                                ~~~~
    

Unexpected token 'true' in expression or statement.
At line:1 char:66

  • ... //vSeeds.emplace_back("seed-a.stonicacoin.loshan.co.uk", true);
  •                                                               ~
    

Missing closing ')' in expression.
At line:1 char:71

  • ... //vSeeds.emplace_back("seed-a.stonicacoin.loshan.co.uk", true);
  •                                                                    ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32> //vSeeds.emplace_back("dnsseed.thrasher.io", true);
At line:1 char:54

  •      //vSeeds.emplace_back("dnsseed.thrasher.io", true);
    
  •                                                  ~
    

Missing expression after ','.
At line:1 char:55

  •      //vSeeds.emplace_back("dnsseed.thrasher.io", true);
    
  •                                                   ~~~~
    

Unexpected token 'true' in expression or statement.
At line:1 char:54

  •      //vSeeds.emplace_back("dnsseed.thrasher.io", true);
    
  •                                                  ~
    

Missing closing ')' in expression.
At line:1 char:59

  •      //vSeeds.emplace_back("dnsseed.thrasher.io", true);
    
  •                                                       ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32> //vSeeds.emplace_back("dnsseed.stonicacointools.com", true);
At line:1 char:63

  •      //vSeeds.emplace_back("dnsseed.stonicacointools.com", true);
    
  •                                                           ~
    

Missing expression after ','.
At line:1 char:64

  •      //vSeeds.emplace_back("dnsseed.stonicacointools.com", true);
    
  •                                                            ~~~~
    

Unexpected token 'true' in expression or statement.
At line:1 char:63

  •      //vSeeds.emplace_back("dnsseed.stonicacointools.com", true);
    
  •                                                           ~
    

Missing closing ')' in expression.
At line:1 char:68

  •      //vSeeds.emplace_back("dnsseed.stonicacointools.com", true);
    
  •                                                                ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32> //vSeeds.emplace_back("dnsseed.stonicacoinpool.org", true);
At line:1 char:62

  •      //vSeeds.emplace_back("dnsseed.stonicacoinpool.org", true);
    
  •                                                          ~
    

Missing expression after ','.
At line:1 char:63

  •      //vSeeds.emplace_back("dnsseed.stonicacoinpool.org", true);
    
  •                                                           ~~~~
    

Unexpected token 'true' in expression or statement.
At line:1 char:62

  •      //vSeeds.emplace_back("dnsseed.stonicacoinpool.org", true);
    
  •                                                          ~
    

Missing closing ')' in expression.
At line:1 char:67

  •      //vSeeds.emplace_back("dnsseed.stonicacoinpool.org", true);
    
  •                                                               ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32> //vSeeds.emplace_back("dnsseed.koin-project.com", false);
At line:1 char:59

  •      //vSeeds.emplace_back("dnsseed.koin-project.com", false);
    
  •                                                       ~
    

Missing expression after ','.
At line:1 char:60

  •      //vSeeds.emplace_back("dnsseed.koin-project.com", false);
    
  •                                                        ~~~~~
    

Unexpected token 'false' in expression or statement.
At line:1 char:59

  •      //vSeeds.emplace_back("dnsseed.koin-project.com", false);
    
  •                                                       ~
    

Missing closing ')' in expression.
At line:1 char:65

  •      //vSeeds.emplace_back("dnsseed.koin-project.com", false);
    
  •                                                             ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32>
PS C:\Windows\system32> base58Prefixes[] = std::vector(1,127);
base58Prefixes[PUBKEY_ADDRESS] : The term 'base58Prefixes[PUBKEY_ADDRESS]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>( ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[PUBKEY_ADDRESS]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,65);
base58Prefixes[SCRIPT_ADDRESS] : The term 'base58Prefixes[SCRIPT_ADDRESS]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>( ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[SCRIPT_ADDRESS]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[SCRIPT_ADDRESS2] = std::vector(1,56);
base58Prefixes[SCRIPT_ADDRESS2] : The term 'base58Prefixes[SCRIPT_ADDRESS2]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, o
r if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char> ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[SCRIPT_ADDRESS2]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[SECRET_KEY] = std::vector(1,176);
base58Prefixes[SECRET_KEY] : The term 'base58Prefixes[SECRET_KEY]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>( ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[SECRET_KEY]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
base58Prefixes[EXT_PUBLIC_KEY] : The term 'base58Prefixes[EXT_PUBLIC_KEY]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[EXT_PUBLIC_KEY]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
base58Prefixes[EXT_SECRET_KEY] : The term 'base58Prefixes[EXT_SECRET_KEY]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[EXT_SECRET_KEY]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> vFixedSeeds = std::vector(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));
At line:1 char:59

  •      vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_m ...
    
  •                                                       ~
    

Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Windows\system32>
PS C:\Windows\system32> fDefaultConsistencyChecks = false;
fDefaultConsistencyChecks : The term 'fDefaultConsistencyChecks' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:10

  •      fDefaultConsistencyChecks = false;
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (fDefaultConsistencyChecks:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> fRequireStandard = true;
fRequireStandard : The term 'fRequireStandard' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, veri
fy that the path is correct and try again.
At line:1 char:10

  •      fRequireStandard = true;
    
  •      ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (fRequireStandard:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> fMineBlocksOnDemand = false;
fMineBlocksOnDemand : The term 'fMineBlocksOnDemand' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included
, verify that the path is correct and try again.
At line:1 char:10

  •      fMineBlocksOnDemand = false;
    
  •      ~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (fMineBlocksOnDemand:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> checkpointData = (CCheckpointData) {

         {
             {  0, uint256S("0x00000000b2c50d03d4d0bdd38681775ce522f137518145d6b3c913b7dd4423e5")},

         }
     };

At line:3 char:23

  •              {  0, uint256S("0x00000000b2c50d03d4d0bdd38681775ce5 ...
    
  •                   ~
    

Missing expression after ','.
At line:3 char:24

  •              {  0, uint256S("0x00000000b2c50d03d4d0bdd38681775ce5 ...
    
  •                    ~~~~~~~~
    

Unexpected token 'uint256S' in expression or statement.
At line:3 char:104

  • ... x00000000b2c50d03d4d0bdd38681775ce522f137518145d6b3c913b7dd4423e5")},
  •                                                                      ~
    

Missing expression after ','.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32>
PS C:\Windows\system32> chainTxData = ChainTxData{

         // Data as of block db42d00d824950a125f9b08b6b6c282c484781562fa8b3bd29d6ce4a2627c348 (height 1259851).
         1502955334, // * UNIX timestamp of last known number of transactions
         1,  // * total number of transactions between genesis and that timestamp
                 //   (the tx=... number in the SetBestChain debug.log lines)
         0.00     // * estimated number of transactions per second after that timestamp
     };

At line:3 char:25

  •          1502955334, // * UNIX timestamp of last known number of  ...
    
  •                     ~
    

Missing expression after ','.
At line:3 char:27

  •          1502955334, // * UNIX timestamp of last known number of  ...
    
  •                       ~
    

You must provide a value expression following the '/' operator.
At line:3 char:28

  •          1502955334, // * UNIX timestamp of last known number of  ...
    
  •                        ~
    

You must provide a value expression following the '/' operator.
At line:3 char:30

  •          1502955334, // * UNIX timestamp of last known number of  ...
    
  •                          ~
    

You must provide a value expression following the '*' operator.
At line:3 char:31

  •          1502955334, // * UNIX timestamp of last known number of  ...
    
  •                           ~~~~
    

Unexpected token 'UNIX' in expression or statement.
At line:4 char:16

  •          1,  // * total number of transactions between genesis an ...
    
  •            ~
    

Missing expression after ','.
At line:4 char:19

  •          1,  // * total number of transactions between genesis an ...
    
  •               ~
    

You must provide a value expression following the '/' operator.
At line:4 char:20

  •          1,  // * total number of transactions between genesis an ...
    
  •                ~
    

You must provide a value expression following the '/' operator.
At line:4 char:22

  •          1,  // * total number of transactions between genesis an ...
    
  •                  ~
    

You must provide a value expression following the '*' operator.
At line:4 char:23

  •          1,  // * total number of transactions between genesis an ...
    
  •                   ~~~~~
    

Unexpected token 'total' in expression or statement.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32> }
At line:1 char:6

  •  }
    
  •  ~
    

Unexpected token '}' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32> };
At line:1 char:2

  • };
  • ~
    Unexpected token '}' in expression or statement.
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32>
PS C:\Windows\system32> /**
/** : The term '/**' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correc
t and try again.
At line:1 char:2

  • /**
  •  + CategoryInfo          : ObjectNotFound: (/**:String) [], CommandNotFoundException
     + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS C:\Windows\system32> * Testnet (v3)
v3 : The term 'v3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:14

    • Testnet (v3)
  •          ~~
    
    • CategoryInfo : ObjectNotFound: (v3:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> */
/ : The term '/' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:3

  • */
  • ~~
    • CategoryInfo : ObjectNotFound: (*/:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> class CTestNetParams : public CChainParams {

public:
CTestNetParams() {
strNetworkID = "test";
consensus.nSubsidyHalvingInterval = 840000;
consensus.BIP34Height = 76;
consensus.BIP34Hash = uint256S("8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573");
consensus.BIP65Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
consensus.BIP66Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // 3.5 days
consensus.nPowTargetSpacing = 2.5 * 60;
consensus.fPowAllowMinDifficultyBlocks = true;
consensus.fPowNoRetargeting = false;
consensus.nRuleChangeActivationThreshold = 1512; // 75% for testchains
consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008

     // Deployment of BIP68, BIP112, and BIP113.
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1483228800; // January 1, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1517356801; // January 31st, 2018

     // Deployment of SegWit (BIP141, BIP143, and BIP147)
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1483228800; // January 1, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018

     // The best chain should have at least this much work.
     consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000000000000364b0cbc3568");

     // By default assume that the signatures in ancestors of this block are valid.
     consensus.defaultAssumeValid = uint256S("0xad8ff6c2f5580d2b50bd881e11312425ea84fa99f322bf132beb722f97971bba"); //153490

     pchMessageStart[0] = 0xfd;
     pchMessageStart[1] = 0xd2;
     pchMessageStart[2] = 0xc8;
     pchMessageStart[3] = 0xf1;
     nDefaultPort = 19335;
     nPruneAfterHeight = 1000;

     genesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);

At line:1 char:31

  • class CTestNetParams : public CChainParams {
  •                           ~
    

Missing 'class' body in 'class' declaration.
At line:3 char:21

  •  CTestNetParams() {
    
  •                 ~
    

An expression was expected after '('.
At line:26 char:41

  •      // Deployment of SegWit (BIP141, BIP143, and BIP147)
    
  •                                     ~
    

Missing argument in parameter list.
At line:44 char:74

  • ... nesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
  •                                                               ~
    

You must provide a value expression following the '*' operator.
At line:44 char:75

  • ... nesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
  •                                                                ~~~~
    

Unexpected token 'COIN' in expression or statement.
At line:44 char:74

  • ... nesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
  •                                                               ~
    

Missing closing ')' in expression.
At line:3 char:23

  •  CTestNetParams() {
    
  •                   ~
    

Missing closing '}' in statement block or type definition.
At line:1 char:45

  • class CTestNetParams : public CChainParams {
  •                                         ~
    

Missing closing '}' in statement block or type definition.
At line:44 char:79

  • ... nesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
  •                                                                    ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingTypeBody

PS C:\Windows\system32> consensus.hashGenesisBlock = genesis.GetHash();
At line:1 char:55

  •      consensus.hashGenesisBlock = genesis.GetHash();
    
  •                                                   ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32> //assert(consensus.hashGenesisBlock == uint256S("0x"));
consensus.hashGenesisBlock : The term 'consensus.hashGenesisBlock' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At line:1 char:19

  •      //assert(consensus.hashGenesisBlock == uint256S("0x"));
    
  •               ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.hashGenesisBlock:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> //assert(genesis.hashMerkleRoot == uint256S("0x"));
genesis.hashMerkleRoot : The term 'genesis.hashMerkleRoot' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was in
cluded, verify that the path is correct and try again.
At line:1 char:19

  •      //assert(genesis.hashMerkleRoot == uint256S("0x"));
    
  •               ~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (genesis.hashMerkleRoot:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> vFixedSeeds.clear();
At line:1 char:28

  •      vFixedSeeds.clear();
    
  •                        ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32> vSeeds.clear();
At line:1 char:23

  •      vSeeds.clear();
    
  •                   ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32> // nodes with support for servicebits filtering should be at the top
// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:10

  •      // nodes with support for servicebits filtering should be at ...
    
  •      ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> //vSeeds.emplace_back("testnet-seed.stonicacointools.com", true);
At line:1 char:68

  • ... //vSeeds.emplace_back("testnet-seed.stonicacointools.com", true);
  •                                                               ~
    

Missing expression after ','.
At line:1 char:69

  • ... //vSeeds.emplace_back("testnet-seed.stonicacointools.com", true);
  •                                                                ~~~~
    

Unexpected token 'true' in expression or statement.
At line:1 char:68

  • ... //vSeeds.emplace_back("testnet-seed.stonicacointools.com", true);
  •                                                               ~
    

Missing closing ')' in expression.
At line:1 char:73

  • ... //vSeeds.emplace_back("testnet-seed.stonicacointools.com", true);
  •                                                                    ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32> //vSeeds.emplace_back("seed-b.stonicacoin.loshan.co.uk", true);
At line:1 char:66

  • ... //vSeeds.emplace_back("seed-b.stonicacoin.loshan.co.uk", true);
  •                                                               ~
    

Missing expression after ','.
At line:1 char:67

  • ... //vSeeds.emplace_back("seed-b.stonicacoin.loshan.co.uk", true);
  •                                                                ~~~~
    

Unexpected token 'true' in expression or statement.
At line:1 char:66

  • ... //vSeeds.emplace_back("seed-b.stonicacoin.loshan.co.uk", true);
  •                                                               ~
    

Missing closing ')' in expression.
At line:1 char:71

  • ... //vSeeds.emplace_back("seed-b.stonicacoin.loshan.co.uk", true);
  •                                                                    ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32> //vSeeds.emplace_back("dnsseed-testnet.thrasher.io", true);
At line:1 char:62

  •      //vSeeds.emplace_back("dnsseed-testnet.thrasher.io", true);
    
  •                                                          ~
    

Missing expression after ','.
At line:1 char:63

  •      //vSeeds.emplace_back("dnsseed-testnet.thrasher.io", true);
    
  •                                                           ~~~~
    

Unexpected token 'true' in expression or statement.
At line:1 char:62

  •      //vSeeds.emplace_back("dnsseed-testnet.thrasher.io", true);
    
  •                                                          ~
    

Missing closing ')' in expression.
At line:1 char:67

  •      //vSeeds.emplace_back("dnsseed-testnet.thrasher.io", true);
    
  •                                                               ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32>
PS C:\Windows\system32> base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,111);
base58Prefixes[PUBKEY_ADDRESS] : The term 'base58Prefixes[PUBKEY_ADDRESS]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>( ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[PUBKEY_ADDRESS]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,196);
base58Prefixes[SCRIPT_ADDRESS] : The term 'base58Prefixes[SCRIPT_ADDRESS]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>( ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[SCRIPT_ADDRESS]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[SCRIPT_ADDRESS2] = std::vector(1,58);
base58Prefixes[SCRIPT_ADDRESS2] : The term 'base58Prefixes[SCRIPT_ADDRESS2]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, o
r if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char> ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[SCRIPT_ADDRESS2]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[SECRET_KEY] = std::vector(1,239);
base58Prefixes[SECRET_KEY] : The term 'base58Prefixes[SECRET_KEY]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>( ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[SECRET_KEY]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
base58Prefixes[EXT_PUBLIC_KEY] : The term 'base58Prefixes[EXT_PUBLIC_KEY]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[EXT_PUBLIC_KEY]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
base58Prefixes[EXT_SECRET_KEY] : The term 'base58Prefixes[EXT_SECRET_KEY]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[EXT_SECRET_KEY]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> vFixedSeeds = std::vector(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
At line:1 char:59

  •      vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_t ...
    
  •                                                       ~
    

Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Windows\system32>
PS C:\Windows\system32> fDefaultConsistencyChecks = false;
fDefaultConsistencyChecks : The term 'fDefaultConsistencyChecks' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:10

  •      fDefaultConsistencyChecks = false;
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (fDefaultConsistencyChecks:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> fRequireStandard = false;
fRequireStandard : The term 'fRequireStandard' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, veri
fy that the path is correct and try again.
At line:1 char:10

  •      fRequireStandard = false;
    
  •      ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (fRequireStandard:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> fMineBlocksOnDemand = false;
fMineBlocksOnDemand : The term 'fMineBlocksOnDemand' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included
, verify that the path is correct and try again.
At line:1 char:10

  •      fMineBlocksOnDemand = false;
    
  •      ~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (fMineBlocksOnDemand:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> checkpointData = (CCheckpointData) {

         {
             {0, uint256S("")},
         }
     };

At line:3 char:21

  •              {0, uint256S("")},
    
  •                 ~
    

Missing expression after ','.
At line:3 char:22

  •              {0, uint256S("")},
    
  •                  ~~~~~~~~
    

Unexpected token 'uint256S' in expression or statement.
At line:3 char:36

  •              {0, uint256S("")},
    
  •                                ~
    

Missing expression after ','.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32>
PS C:\Windows\system32> chainTxData = ChainTxData{

         // Data as of block 3351b6229da00b47ad7a8d7e1323b0e2874744b5296e3d6448293463ab758624 (height 153489)
         //1502953751,
         //382986,
         //0.01
     };

At line:3 char:26

  •          //1502953751,
    
  •                      ~
    

Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Windows\system32>
PS C:\Windows\system32> }
At line:1 char:6

  •  }
    
  •  ~
    

Unexpected token '}' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32> };
At line:1 char:2

  • };
  • ~
    Unexpected token '}' in expression or statement.
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32>
PS C:\Windows\system32> /**
/** : The term '/**' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correc
t and try again.
At line:1 char:2

  • /**
  •  + CategoryInfo          : ObjectNotFound: (/**:String) [], CommandNotFoundException
     + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS C:\Windows\system32> * Regression test

  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
    At line:1 char:3
    • Regression test
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> */
/ : The term '/' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:3

  • */
  • ~~
    • CategoryInfo : ObjectNotFound: (*/:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> class CRegTestParams : public CChainParams {

public:
CRegTestParams() {
strNetworkID = "regtest";
consensus.nSubsidyHalvingInterval = 150;
consensus.BIP34Height = 100000000; // BIP34 has not activated on regtest (far in the future so block v1 are not rejected in tests)
consensus.BIP34Hash = uint256();
consensus.BIP65Height = 1351; // BIP65 activated on regtest (Used in rpc activation tests)
consensus.BIP66Height = 1251; // BIP66 activated on regtest (Used in rpc activation tests)
consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // two weeks
consensus.nPowTargetSpacing = 2.5 * 60;
consensus.fPowAllowMinDifficultyBlocks = true;
consensus.fPowNoRetargeting = true;
consensus.nRuleChangeActivationThreshold = 108; // 75% for testchains
consensus.nMinerConfirmationWindow = 144; // Faster than normal for regtest (144 instead of 2016)
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
At line:1 char:31

  • class CRegTestParams : public CChainParams {
  •                           ~
    

Missing 'class' body in 'class' declaration.
At line:3 char:21

  •  CRegTestParams() {
    
  •                 ~
    

An expression was expected after '('.
At line:7 char:40

  •      consensus.BIP34Hash = uint256();
    
  •                                    ~
    

An expression was expected after '('.
At line:16 char:91

  • ... nWindow = 144; // Faster than normal for regtest (144 instead of 2016 ...
  •                                                       ~~~~~~~
    

Unexpected token 'instead' in expression or statement.
At line:16 char:90

  • ... firmationWindow = 144; // Faster than normal for regtest (144 instead ...
  •                                                              ~
    

Missing closing ')' in expression.
At line:3 char:23

  •  CRegTestParams() {
    
  •                   ~
    

Missing closing '}' in statement block or type definition.
At line:1 char:45

  • class CRegTestParams : public CChainParams {
  •                                         ~
    

Missing closing '}' in statement block or type definition.
At line:16 char:106

  • ... Window = 144; // Faster than normal for regtest (144 instead of 2016)
  •                                                                     ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingTypeBody

PS C:\Windows\system32> consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime : The term 'consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nSta ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.vDepl...MMY].nStartTime:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 999999999999ULL;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout : The term 'consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout' is not recognized as the name of a cmdlet, function, s
cript file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTim ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.vDepl...DUMMY].nTimeout:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit : The term 'consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit' is not recognized as the name of a cmdlet, function, script file, or operabl
e program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.vDepl...OYMENT_CSV].bit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 0;
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime : The term 'consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime' is not recognized as the name of a cmdlet, function, script fi
le, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.vDepl...CSV].nStartTime:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 999999999999ULL;
consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout : The term 'consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.vDepl...T_CSV].nTimeout:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit : The term 'consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit' is not recognized as the name of a cmdlet, function, script file, or o
perable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1 ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.vDepl...ENT_SEGWIT].bit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 0;
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime : The term 'consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime' is not recognized as the name of a cmdlet, function, scr
ipt file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartT ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.vDepl...WIT].nStartTime:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 999999999999ULL;
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout : The term 'consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeou ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.vDepl...EGWIT].nTimeout:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> // The best chain should have at least this much work.
// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:10

  •      // The best chain should have at least this much work.
    
  •      ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.nMinimumChainWork = uint256S("0x00");
consensus.nMinimumChainWork : The term 'consensus.nMinimumChainWork' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a p
ath was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.nMinimumChainWork = uint256S("0x00");
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.nMinimumChainWork:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> // By default assume that the signatures in ancestors of this block are valid.
// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:10

  •      // By default assume that the signatures in ancestors of thi ...
    
  •      ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.defaultAssumeValid = uint256S("0x00");
consensus.defaultAssumeValid : The term 'consensus.defaultAssumeValid' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.defaultAssumeValid = uint256S("0x00");
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.defaultAssumeValid:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> pchMessageStart[0] = 0xfa;
pchMessageStart[0] : The term 'pchMessageStart[0]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:10

  •      pchMessageStart[0] = 0xfa;
    
  •      ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (pchMessageStart[0]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> pchMessageStart[1] = 0xbf;
pchMessageStart[1] : The term 'pchMessageStart[1]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:10

  •      pchMessageStart[1] = 0xbf;
    
  •      ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (pchMessageStart[1]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> pchMessageStart[2] = 0xb5;
pchMessageStart[2] : The term 'pchMessageStart[2]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:10

  •      pchMessageStart[2] = 0xb5;
    
  •      ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (pchMessageStart[2]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> pchMessageStart[3] = 0xda;
pchMessageStart[3] : The term 'pchMessageStart[3]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:10

  •      pchMessageStart[3] = 0xda;
    
  •      ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (pchMessageStart[3]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> nDefaultPort = 19444;
nDefaultPort : The term 'nDefaultPort' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At line:1 char:10

  •      nDefaultPort = 19444;
    
  •      ~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (nDefaultPort:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> nPruneAfterHeight = 1000;
nPruneAfterHeight : The term 'nPruneAfterHeight' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, ve
rify that the path is correct and try again.
At line:1 char:10

  •      nPruneAfterHeight = 1000;
    
  •      ~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (nPruneAfterHeight:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> genesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
At line:1 char:74

  • ... nesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
  •                                                               ~
    

You must provide a value expression following the '*' operator.
At line:1 char:75

  • ... nesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
  •                                                                ~~~~
    

Unexpected token 'COIN' in expression or statement.
At line:1 char:74

  • ... nesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
  •                                                               ~
    

Missing closing ')' in expression.
At line:1 char:79

  • ... nesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
  •                                                                    ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedValueExpression

PS C:\Windows\system32> consensus.hashGenesisBlock = genesis.GetHash();
At line:1 char:55

  •      consensus.hashGenesisBlock = genesis.GetHash();
    
  •                                                   ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32> assert(consensus.hashGenesisBlock == uint256S("0x9"));
consensus.hashGenesisBlock : The term 'consensus.hashGenesisBlock' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At line:1 char:17

  •      assert(consensus.hashGenesisBlock == uint256S("0x9"));
    
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.hashGenesisBlock:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> assert(genesis.hashMerkleRoot == uint256S("0x"));
genesis.hashMerkleRoot : The term 'genesis.hashMerkleRoot' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was in
cluded, verify that the path is correct and try again.
At line:1 char:17

  •      assert(genesis.hashMerkleRoot == uint256S("0x"));
    
  •             ~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (genesis.hashMerkleRoot:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> vFixedSeeds.clear(); //!< Regtest mode doesn't have any fixed seeds.

     vSeeds.clear();      //!< Regtest mode doesn't have any DNS seeds.

At line:1 char:28

  •      vFixedSeeds.clear(); //!< Regtest mode doesn't have any fixe ...
    
  •                        ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32>
PS C:\Windows\system32> fDefaultConsistencyChecks = true;
fDefaultConsistencyChecks : The term 'fDefaultConsistencyChecks' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:10

  •      fDefaultConsistencyChecks = true;
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (fDefaultConsistencyChecks:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> fRequireStandard = false;
fRequireStandard : The term 'fRequireStandard' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, veri
fy that the path is correct and try again.
At line:1 char:10

  •      fRequireStandard = false;
    
  •      ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (fRequireStandard:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> fMineBlocksOnDemand = true;
fMineBlocksOnDemand : The term 'fMineBlocksOnDemand' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included
, verify that the path is correct and try again.
At line:1 char:10

  •      fMineBlocksOnDemand = true;
    
  •      ~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (fMineBlocksOnDemand:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> checkpointData = (CCheckpointData) {

         {
             {0, uint256S("530827f38f93b43ed12af0b3ad25a288dc02ed74d6d7857862df51fc56c416f9")},
         }
     };

At line:3 char:21

  •              {0, uint256S("530827f38f93b43ed12af0b3ad25a288dc02ed ...
    
  •                 ~
    

Missing expression after ','.
At line:3 char:22

  •              {0, uint256S("530827f38f93b43ed12af0b3ad25a288dc02ed ...
    
  •                  ~~~~~~~~
    

Unexpected token 'uint256S' in expression or statement.
At line:3 char:100

  • ... "530827f38f93b43ed12af0b3ad25a288dc02ed74d6d7857862df51fc56c416f9")},
  •                                                                      ~
    

Missing expression after ','.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Windows\system32>
PS C:\Windows\system32> chainTxData = ChainTxData{

         0,
         0,
         0
     };

chainTxData : The term 'chainTxData' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that th
e path is correct and try again.
At line:1 char:10

  •      chainTxData = ChainTxData{
    
  •      ~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (chainTxData:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,111);
base58Prefixes[PUBKEY_ADDRESS] : The term 'base58Prefixes[PUBKEY_ADDRESS]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>( ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[PUBKEY_ADDRESS]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,196);
base58Prefixes[SCRIPT_ADDRESS] : The term 'base58Prefixes[SCRIPT_ADDRESS]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>( ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[SCRIPT_ADDRESS]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[SCRIPT_ADDRESS2] = std::vector(1,58);
base58Prefixes[SCRIPT_ADDRESS2] : The term 'base58Prefixes[SCRIPT_ADDRESS2]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, o
r if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char> ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[SCRIPT_ADDRESS2]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[SECRET_KEY] = std::vector(1,239);
base58Prefixes[SECRET_KEY] : The term 'base58Prefixes[SECRET_KEY]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>( ...
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[SECRET_KEY]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
base58Prefixes[EXT_PUBLIC_KEY] : The term 'base58Prefixes[EXT_PUBLIC_KEY]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[EXT_PUBLIC_KEY]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
base58Prefixes[EXT_SECRET_KEY] : The term 'base58Prefixes[EXT_SECRET_KEY]' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:10

  •      base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (base58Prefixes[EXT_SECRET_KEY]:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> }
At line:1 char:6

  •  }
    
  •  ~
    

Unexpected token '}' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32> };
At line:1 char:2

  • };
  • ~
    Unexpected token '}' in expression or statement.
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32>
PS C:\Windows\system32> static std::unique_ptr globalChainParams;
static : The term 'static' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:2

  • static std::unique_ptr globalChainParams;
  •  + CategoryInfo          : ObjectNotFound: (static:String) [], CommandNotFoundException
     + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS C:\Windows\system32>
PS C:\Windows\system32> const CChainParams &Params() {

 assert(globalChainParams);
 return *globalChainParams;

}
At line:1 char:21

  • const CChainParams &Params() {
  •                 ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At line:1 char:29

  • const CChainParams &Params() {
  •                         ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed

PS C:\Windows\system32>
PS C:\Windows\system32> std::unique_ptr CreateChainParams(const std::string& chain)
At line:1 char:67

  • ... :unique_ptr CreateChainParams(const std::string& chain)
  •                                                              ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed

PS C:\Windows\system32> {

 if (chain == CBaseChainParams::MAIN)
     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());
 throw std::runtime_error(strprintf("%s: Unknown chain %s.", __func__, chain));

At line:2 char:41

  •  if (chain == CBaseChainParams::MAIN)
    
  •                                     ~
    

Missing statement block after if ( condition ).
At line:3 char:63

  •      return std::unique_ptr<CChainParams>(new CMainParams());
    
  •                                                           ~
    

An expression was expected after '('.
At line:4 char:49

  •  else if (chain == CBaseChainParams::TESTNET)
    
  •                                             ~
    

Missing statement block after if ( condition ).
At line:5 char:66

  •      return std::unique_ptr<CChainParams>(new CTestNetParams());
    
  •                                                              ~
    

An expression was expected after '('.
At line:6 char:49

  •  else if (chain == CBaseChainParams::REGTEST)
    
  •                                             ~
    

Missing statement block after if ( condition ).
At line:7 char:66

  •      return std::unique_ptr<CChainParams>(new CRegTestParams());
    
  •                                                              ~
    

An expression was expected after '('.
At line:8 char:65

  • ... throw std::runtime_error(strprintf("%s: Unknown chain %s.", _func ...
  •                                                              ~
    

Missing expression after ','.
At line:8 char:66

  • ... td::runtime_error(strprintf("%s: Unknown chain %s.", func, chain) ...
  •                                                      ~~~~~~~~
    

Unexpected token 'func' in expression or statement.
At line:8 char:65

  • ... throw std::runtime_error(strprintf("%s: Unknown chain %s.", _func ...
  •                                                              ~
    

Missing closing ')' in expression.
At line:1 char:2

  • {
  • ~
    Missing closing '}' in statement block or type definition.
    Not all parse errors were reported. Correct the reported errors and try again.
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : MissingStatementBlock

PS C:\Windows\system32> }
At line:1 char:2

  • }
  • ~
    Unexpected token '}' in expression or statement.
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32>
PS C:\Windows\system32> void SelectParams(const std::string& network)
At line:1 char:37

  • void SelectParams(const std::string& network)
  •                                 ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed

PS C:\Windows\system32> {

 SelectBaseParams(network);
 globalChainParams = CreateChainParams(network);

}

 SelectBaseParams(network);
 globalChainParams = CreateChainParams(network);

PS C:\Windows\system32>
PS C:\Windows\system32> void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
Consensus::DeploymentPos : The term 'Consensus::DeploymentPos' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path wa
s included, verify that the path is correct and try again.
At line:1 char:35

  • void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t ...
  •                               ~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Consensus::DeploymentPos:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> {

 globalChainParams->UpdateVersionBitsParameters(d, nStartTime, nTimeout);

// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "chainparams.h"
#include "consensus/merkle.h"

#include "tinyformat.h"
#include "util.h"
#include "utilstrencodings.h"

#include <assert.h>

#include "chainparamsseeds.h"
#include "arith_uint256.h"

static CBlock CreateGenesisBlock(const char* pszTimestamp, const CScript& genesisOutputScript, uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
{
CMutableTransaction txNew;
txNew.nVersion = 1;
txNew.vin.resize(1);
txNew.vout.resize(1);
txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) << std::vector((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
At line:2 char:54

  •  globalChainParams->UpdateVersionBitsParameters(d, nStartTime, nT ...
    
  •                                                  ~
    

Missing argument in parameter list.
At line:20 char:74

  • ... k CreateGenesisBlock(const char* pszTimestamp, const CScript& genesis ...
  •                                                             ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At line:20 char:177

  • ... 32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesis ...
  •                                                             ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At line:26 char:39

  •  txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) ...
    
  •                                   ~
    

An expression was expected after '('.
At line:26 char:42

  •  txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) ...
    
  •                                      ~
    

Missing file specification after redirection operator.
At line:26 char:41

  •  txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) ...
    
  •                                     ~
    

The '<' operator is reserved for future use.
At line:26 char:42

  •  txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) ...
    
  •                                      ~
    

The '<' operator is reserved for future use.
At line:26 char:55

  •  txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) ...
    
  •                                                   ~
    

Missing file specification after redirection operator.

  •  txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) ...
    
  •                                                  ~
    

The '<' operator is reserved for future use.
At line:26 char:55

  •  txNew.vin[0].scriptSig = CScript() << 486604799 << CScriptNum(4) ...
    
  •                                                   ~
    

The '<' operator is reserved for future use.
Not all parse errors were reported. Correct the reported errors and try again.
+ FullyQualifiedErrorId : MissingArgument

PS C:\Windows\system32> txNew.vout[0].nValue = genesisReward;
txNew.vout[0].nValue : The term 'txNew.vout[0].nValue' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was includ
ed, verify that the path is correct and try again.
At line:1 char:6

  •  txNew.vout[0].nValue = genesisReward;
    
  •  ~~~~~~~~~~~~~~~~~~~~
    
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> txNew.vout[0].scriptPubKey = genesisOutputScript;
txNew.vout[0].scriptPubKey : The term 'txNew.vout[0].scriptPubKey' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At line:1 char:6

  •  txNew.vout[0].scriptPubKey = genesisOutputScript;
    
  •  ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
PS C:\Windows\system32> CBlock genesis;
CBlock : The term 'CBlock' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:6

  •  CBlock genesis;
    
    • CategoryInfo : ObjectNotFound: (CBlock:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> genesis.nTime = nTime;
genesis.nTime : The term 'genesis.nTime' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify tha
t the path is correct and try again.
At line:1 char:6

  •  ~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (genesis.nTime:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> genesis.nBits = nBits;
genesis.nBits : The term 'genesis.nBits' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify tha
t the path is correct and try again.
At line:1 char:6

  •  ~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (genesis.nBits:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> genesis.nNonce = nNonce;
genesis.nNonce : The term 'genesis.nNonce' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify t
hat the path is correct and try again.
At line:1 char:6

  •  ~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (genesis.nNonce:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> genesis.nVersion = nVersion;
genesis.nVersion : The term 'genesis.nVersion' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, veri
fy that the path is correct and try again.

  •  ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (genesis.nVersion:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> genesis.vtx.push_back(MakeTransactionRef(std::move(txNew)));
txNew : The term 'txNew' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is co
rrect and try again.
At line:1 char:57

  •                                                     ~~~~~
    
    • CategoryInfo : ObjectNotFound: (txNew:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> genesis.hashPrevBlock.SetNull();
At line:1 char:36

  •  genesis.hashPrevBlock.SetNull();
    
  •                                ~
    
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32> genesis.hashMerkleRoot = BlockMerkleRoot(genesis);
genesis : The term 'genesis' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path i
s correct and try again.
At line:1 char:47

  •  genesis.hashMerkleRoot = BlockMerkleRoot(genesis);
    
    • CategoryInfo : ObjectNotFound: (genesis:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> return genesis;
genesis : The term 'genesis' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path i
s correct and try again.
At line:1 char:13

  •  return genesis;
    
    • CategoryInfo : ObjectNotFound: (genesis:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> }
At line:1 char:2

  • }
  • ~
    Unexpected token '}' in expression or statement.
    • FullyQualifiedErrorId : UnexpectedToken

PS C:\Windows\system32>
PS C:\Windows\system32> /**
/** : The term '/**' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correc
t and try again.
At line:1 char:2

  •  + CategoryInfo          : ObjectNotFound: (/**:String) [], CommandNotFoundException
     + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS C:\Windows\system32> * Build the genesis block. Note that the output of its generation

  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
    At line:1 char:3
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> * transaction cannot be spent since it did not originally exist in the

  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
    At line:1 char:3
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> * database.

  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
    • database.
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> *

  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> * CBlock(hash=000000000019d6, ver=1, hashPrevBlock=00000000000000, hashMerkleRoot=4a5e1e, nTime=1231006505, nBits=1d00ffff, *nNonce=2083236893, vtx=1)
At line:1 char:31

    • CBlock(hash=000000000019d6, ver=1, hashPrevBlock=00000000000000, ...
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : MissingArgument

PS C:\Windows\system32> * CTransaction(hash=4a5e1e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
At line:1 char:31

    • CTransaction(hash=4a5e1e, ver=1, vin.size=1, vout.size=1, nLock ...
  •                           ~
    

Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Windows\system32> * CTxIn(COutPoint(000000, -1), coinbase *04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696COutPoint : The term 'COutPoint' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the pa
th is correct and try again.
At line:1 char:15

    • CTxIn(COutPoint(000000, -1), coinbase *04ffff001d010445546865 ...
      
  •           ~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (COutPoint:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> * CTxOut(nValue=50.00000000, scriptPubKey=0x5F1DF16B2B704C8A578D0B)
At line:1 char:34

    • CTxOut(nValue=50.00000000, scriptPubKey=0x5F1DF16B2B704C8A578 ...
      
  •                              ~
    

Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Windows\system32> * vMerkleTree: 4a5e1e

  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
    At line:1 char:3
    • vMerkleTree: 4a5e1e
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> */
/ : The term '/' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:3

  • */
  • ~~
    • CategoryInfo : ObjectNotFound: (*/:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>

  • ... 32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesis ...
  •                                                             ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed

PS C:\Windows\system32> {

 const char* pszTimestamp = "Tehran Times, Stonica wins finally";
 const CScript genesisOutputScript = CScript() << ParseHex("040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHECKSIG;
 return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward);

At line:3 char:50

  •  const CScript genesisOutputScript = CScript() << ParseHex("04018 ...
    
  •                                              ~
    

An expression was expected after '('.

  •                                                 ~
    

Missing file specification after redirection operator.
At line:3 char:52

  •  const CScript genesisOutputScript = CScript() << ParseHex("04018 ...
    
  •                                                ~
    

The '<' operator is reserved for future use.
At line:3 char:53

  •  const CScript genesisOutputScript = CScript() << ParseHex("04018 ...
    

The '<' operator is reserved for future use.
At line:3 char:199

  • ... 04fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHE ...
  •                                                              ~
    

Missing file specification after redirection operator.
At line:3 char:198

  • ... 04fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHE ...
  •                                                             ~
    

At line:3 char:199

  • ... 4fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHEC ...
  •                                                             ~
    

The '<' operator is reserved for future use.
At line:4 char:44

  •  return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTi ...
    
  •                                        ~
    

Missing argument in parameter list.
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32>
PS C:\Windows\system32> void CChainParams::UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
Consensus::DeploymentPos : The term 'Consensus::DeploymentPos' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path wa
s included, verify that the path is correct and try again.
At line:1 char:49

  • ... nParams::UpdateVersionBitsParameters(Consensus::DeploymentPos d, int6 ...
    • CategoryInfo : ObjectNotFound: (Consensus::DeploymentPos:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> {

 consensus.vDeployments[d].nStartTime = nStartTime;
 consensus.vDeployments[d].nTimeout = nTimeout;

}

 consensus.vDeployments[d].nTimeout = nTimeout;

PS C:\Windows\system32>
PS C:\Windows\system32> /**
/** : The term '/**' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correc
t and try again.
At line:1 char:2

  • /**
  •  + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS C:\Windows\system32> * Main network

  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
    At line:1 char:3
    • Main network
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

/ : The term '/' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:3

  • */
  • ~~
    • CategoryInfo : ObjectNotFound: (*/:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

/** : The term '/**' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correc
t and try again.
At line:1 char:2

  • /**
  •  + CategoryInfo          : ObjectNotFound: (/**:String) [], CommandNotFoundException
     + FullyQualifiedErrorId : CommandNotFoundException
    
    
  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
    At line:1 char:3
    • What makes a good checkpoint block?
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> * + Is surrounded by blocks with reasonable timestamps

  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
    At line:1 char:3
      • Is surrounded by blocks with reasonable timestamps
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> * (no blocks before with a timestamp after, none after with

  • timestamp before)
    At line:1 char:64
    • (no blocks before with a timestamp after, none after with
  •                                                            ~
    

Missing closing ')' in expression.
At line:2 char:24

    • timestamp before)
  •                    ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndParenthesisInExpression

PS C:\Windows\system32> * + Contains no strange transactions

  • : The term '*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct an
    d try again.
    At line:1 char:3
      • Contains no strange transactions
  • ~
    • CategoryInfo : ObjectNotFound: (*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> */
/ : The term '/' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:3

  • */
  • ~~
    • CategoryInfo : ObjectNotFound: (*/:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> class CMainParams : public CChainParams {

public:
CMainParams() {
strNetworkID = "main";
consensus.nSubsidyHalvingInterval = 840000;
consensus.BIP34Height = 710000;
consensus.BIP34Hash = uint256S("00000000b2c50d03d4d0bdd38681775ce522f137518145d6b3c913b7dd4423e5");
consensus.BIP65Height = 918684; // bab3041e8977e0dc3eeff63fe707b92bde1dd449d8efafb248c27c8264cc311a
consensus.BIP66Height = 811879; // 7aceee012833fa8952f8835d8b1b3ae233cd6ab08fdb27a771d2bd7bdc491894
consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // 3.5 days
consensus.nPowTargetSpacing = 2.5 * 60;
consensus.fPowAllowMinDifficultyBlocks = false;
consensus.fPowNoRetargeting = false;
consensus.nRuleChangeActivationThreshold = 6048; // 75% of 8064
consensus.nMinerConfirmationWindow = 8064; // nPowTargetTimespan / nPowTargetSpacing * 4
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008

     // Deployment of BIP68, BIP112, and BIP113.
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1485561600; // January 28, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1517356801; // January 31st, 2018

     // Deployment of SegWit (BIP141, BIP143, and BIP147)
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1485561600; // January 28, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018

     // The best chain should have at least this much work.
     consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000000ba50a60f8b56c7fe0");

     // By default assume that the signatures in ancestors of this block are valid.
     consensus.defaultAssumeValid = uint256S("0x29c8c00e1a5f446a6364a29633d3f1ee16428d87c8d3851a1c570be8170b04c2"); //1259849

     /**
      * The message start string is designed to be unlikely to occur in normal data.
      * The characters are rarely used upper ASCII, not valid as UTF-8, and produce
      * a large 32-bit integer with any alignment.
      */
     pchMessageStart[0] = 0x0b;
     pchMessageStart[1] = 0xd0;
     pchMessageStart[3] = 0xdb;
     nDefaultPort = 9335;
     nPruneAfterHeight = 100000;

//static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
genesis = CreateGenesisBlock(1511279793, 1251189192, 0x1d00ffff , 1, 50 * COIN);
At line:1 char:28

  • class CMainParams : public CChainParams {
    At line:3 char:18
  •  CMainParams() {
    
  •              ~
    

An expression was expected after '('.
At line:26 char:41

  •      // Deployment of SegWit (BIP141, BIP143, and BIP147)
    
  •                                     ~
    

Missing argument in parameter list.

  • ... 32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesis ...
  •                                                             ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At line:49 char:83

  • ... reateGenesisBlock(1511279793, 1251189192, 0x1d00ffff , 1, 50 * COIN);
  •                                                               ~
    

You must provide a value expression following the '*' operator.
At line:49 char:84

  •                                                                ~~~~
    

Unexpected token 'COIN' in expression or statement.
At line:49 char:83

  • ... reateGenesisBlock(1511279793, 1251189192, 0x1d00ffff , 1, 50 * COIN);
  •                                                               ~
    

Missing closing ')' in expression.
At line:3 char:20

  •  CMainParams() {
    

Missing closing '}' in statement block or type definition.
At line:1 char:42

  • class CMainParams : public CChainParams {
  •                                      ~
    

Missing closing '}' in statement block or type definition.
At line:49 char:88

  • ... reateGenesisBlock(1511279793, 1251189192, 0x1d00ffff , 1, 50 * COIN);
  •                                                                    ~
    
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : MissingTypeBody

PS C:\Windows\system32> consensus.hashGenesisBlock = genesis.GetHash();
At line:1 char:55

  •      consensus.hashGenesisBlock = genesis.GetHash();
    
  •                                                   ~
    

An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Windows\system32>
PS C:\Windows\system32> /*
/* : The term '/*' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:2

  • /*
    • CategoryInfo : ObjectNotFound: (/*:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> // calculate Genesis Block
// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:10

  •      // calculate Genesis Block
    
  •      ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> // Reset genesis
// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:10

  •      // Reset genesis
    
  •      ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> consensus.hashGenesisBlock = uint256S("0x");
consensus.hashGenesisBlock : The term 'consensus.hashGenesisBlock' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At line:1 char:10

  •      consensus.hashGenesisBlock = uint256S("0x");
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (consensus.hashGenesisBlock:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> std::cout << std::string("Begin calculating Mainnet Genesis Block:\n");

  •      std::cout << std::string("Begin calculating Mainnet Genesis  ...
    
  •                 ~
    

Missing file specification after redirection operator.
At line:1 char:20

  •      std::cout << std::string("Begin calculating Mainnet Genesis  ...
    
  •                ~
    

The '<' operator is reserved for future use.
At line:1 char:21

  •                 ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingFileSpecification

PS C:\Windows\system32> if (true && (genesis.GetHash() != consensus.hashGenesisBlock)) {

         LogPrintf("Calculating Mainnet Genesis Block:\n");
         arith_uint256 hashTarget = arith_uint256().SetCompact(genesis.nBits);

At line:1 char:19

  •      if (true && (genesis.GetHash() != consensus.hashGenesisBlock ...
    
  •               ~~
    

The token '&&' is not a valid statement separator in this version.
At line:1 char:39

  •      if (true && (genesis.GetHash() != consensus.hashGenesisBlock ...
    
  •                                   ~
    

An expression was expected after '('.
At line:1 char:22

  • ... if (true && (genesis.GetHash() != consensus.hashGenesisBlock)) {
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

Expressions are only allowed as the first element of a pipeline.
At line:3 char:55

  •          arith_uint256 hashTarget = arith_uint256().SetCompact(ge ...
    
  •                                                   ~
    

An expression was expected after '('.
At line:3 char:68

  • ... arith_uint256 hashTarget = arith_uint256().SetCompact(genesis. ...
  •                                                              ~
    

Missing ')' in method call.
At line:1 char:73

  • ... if (true && (genesis.GetHash() != consensus.hashGenesisBlock)) {
  •                                                                     ~
    

Missing closing '}' in statement block or type definition.
At line:3 char:81

  • ... arith_uint256 hashTarget = arith_uint256().SetCompact(genesis.nBits);
  •                                                                    ~
    

Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine

PS C:\Windows\system32> uint256 hash;
uint256 : The term 'uint256' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path i
s correct and try again.
At line:1 char:14

  •          uint256 hash;
    
  •          ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (uint256:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> genesis.nNonce = 0;
genesis.nNonce : The term 'genesis.nNonce' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify t
hat the path is correct and try again.
At line:1 char:14

  •          genesis.nNonce = 0;
    
  •          ~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (genesis.nNonce:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> // This will figure out a valid hash and Nonce if you're

         // creating a different genesis block:
         // uint256 hashTarget = CBigNum().SetCompact(genesis.nBits).getuint256();
         // hashTarget.SetCompact(genesis.nBits, &fNegative, &fOverflow).getuint256();
         // while (genesis.GetHash() > hashTarget)
         while (UintToArith256(genesis.GetHash()) > hashTarget)
         {
             ++genesis.nNonce;
             if (genesis.nNonce == 0)
             {
                 LogPrintf("NONCE WRAPPED, incrementing time");
                 std::cout << std::string("NONCE WRAPPED, incrementing time:\n");
                 ++genesis.nTime;
             }
             if (genesis.nNonce % 10000 == 0)
             {
                 LogPrintf("Mainnet: nonce %08u: hash = %s \n", genesis.nNonce, genesis.GetHash().ToString().c_str());
                 // std::cout << strNetworkID << " nonce: " << genesis.nNonce << " time: " << genesis.nTime << " hash: " << genesis.GetHash().ToString().c_str() << "\n";
             }
         }
         std::cout << "Mainnet ---\n";
         std::cout << "  nonce: " << genesis.nNonce <<  "\n";
         std::cout << "   time: " << genesis.nTime << "\n";
         std::cout << "   hash: " << genesis.GetHash().ToString().c_str() << "\n";
         std::cout << "   merklehash: "  << genesis.hashMerkleRoot.ToString().c_str() << "\n";
         // Mainnet --- nonce: 296277 time: 1390095618 hash: 000000bdd771b14e5a031806292305e563956ce2584278de414d9965f6ab54b0
     }
     std::cout << std::string("Finished calculating Mainnet Genesis Block:\n");

*/

//printf("%s\n",consensus.hashGenesisBlock.Tostring().c_str());
std::cout << std::string("ENTER:\n");
assert(consensus.hashGenesisBlock == uint256S("0x00000000b2c50d03d4d0bdd38681775ce522f137518145d6b3c913b7dd4423e5"));
assert(genesis.hashMerkleRoot == uint256S("0xf8621e34b0dcd43361fe589702e06aa79992229bfbca57d058d8561635c30fbe"));
std::cout << std::string("PASSED:\n");

     printf("min nBit:  %08x\n", consensus.powLimit);

     // Note that of those with the service bits flag, most only support a subset of possible options
     //vSeeds.emplace_back("seed-a.stonicacoin.loshan.co.uk", true);
     //vSeeds.emplace_back("dnsseed.thrasher.io", true);
     //vSeeds.emplace_back("dnsseed.stonicacointools.com", true);
     //vSeeds.emplace_back("dnsseed.stonicacoinpool.org", true);
     //vSeeds.emplace_back("dnsseed.koin-project.com", false);

     base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,127);
     base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,65);
     base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,56);
     base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>(1,176);
     base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
     base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};

     vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));

     fDefaultConsistencyChecks = false;
     fRequireStandard = true;
     fMineBlocksOnDemand = false;

     checkpointData = (CCheckpointData) {
         {
             {  0, uint256S("0x00000000b2c50d03d4d0bdd38681775ce522f137518145d6b3c913b7dd4423e5")},

         }
     };

     chainTxData = ChainTxData{
         // Data as of block db42d00d824950a125f9b08b6b6c282c484781562fa8b3bd29d6ce4a2627c348 (height 1259851).
         1502955334, // * UNIX timestamp of last known number of transactions
         1,  // * total number of transactions between genesis and that timestamp
                 //   (the tx=... number in the SetBestChain debug.log lines)
         0.00     // * estimated number of transactions per second after that timestamp
     };
 }

};

/**

  • Testnet (v3)
    */
    class CTestNetParams : public CChainParams {
    public:
    CTestNetParams() {
    strNetworkID = "test";
    consensus.nSubsidyHalvingInterval = 840000;
    consensus.BIP34Height = 76;
    consensus.BIP34Hash = uint256S("8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573");
    consensus.BIP65Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
    consensus.BIP66Height = 76; // 8075c771ed8b495ffd943980a95f702ab34fce3c8c54e379548bda33cc8c0573
    consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
    consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // 3.5 days
    consensus.nPowTargetSpacing = 2.5 * 60;
    consensus.fPowAllowMinDifficultyBlocks = true;
    consensus.fPowNoRetargeting = false;
    consensus.nRuleChangeActivationThreshold = 1512; // 75% for testchains
    consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008

     // Deployment of BIP68, BIP112, and BIP113.
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1483228800; // January 1, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1517356801; // January 31st, 2018
    
     // Deployment of SegWit (BIP141, BIP143, and BIP147)
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1483228800; // January 1, 2017
     consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1517356801; // January 31st, 2018
    
     // The best chain should have at least this much work.
     consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000000000000364b0cbc3568");
    
     // By default assume that the signatures in ancestors of this block are valid.
     consensus.defaultAssumeValid = uint256S("0xad8ff6c2f5580d2b50bd881e11312425ea84fa99f322bf132beb722f97971bba"); //153490
    
     pchMessageStart[0] = 0xfd;
     pchMessageStart[1] = 0xd2;
     pchMessageStart[2] = 0xc8;
     pchMessageStart[3] = 0xf1;
     nDefaultPort = 19335;
     nPruneAfterHeight = 1000;
    
     genesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
     consensus.hashGenesisBlock = genesis.GetHash();
     //assert(consensus.hashGenesisBlock == uint256S("0x"));
     //assert(genesis.hashMerkleRoot == uint256S("0x"));
    
     vFixedSeeds.clear();
     vSeeds.clear();
     // nodes with support for servicebits filtering should be at the top
     //vSeeds.emplace_back("testnet-seed.stonicacointools.com", true);
     //vSeeds.emplace_back("seed-b.stonicacoin.loshan.co.uk", true);
     //vSeeds.emplace_back("dnsseed-testnet.thrasher.io", true);
    
     base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);
     base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
     base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,58);
     base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>(1,239);
     base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
     base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
    
     vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
    
     fDefaultConsistencyChecks = false;
     fRequireStandard = false;
     fMineBlocksOnDemand = false;
    
     checkpointData = (CCheckpointData) {
         {
             {0, uint256S("")},
         }
     };
    
     chainTxData = ChainTxData{
         // Data as of block 3351b6229da00b47ad7a8d7e1323b0e2874744b5296e3d6448293463ab758624 (height 153489)
         //1502953751,
         //382986,
         //0.01
     };
    

    }

/**

  • Regression test
    */
    class CRegTestParams : public CChainParams {
    public:
    CRegTestParams() {
    strNetworkID = "regtest";
    consensus.nSubsidyHalvingInterval = 150;
    consensus.BIP34Height = 100000000; // BIP34 has not activated on regtest (far in the future so block v1 are not rejected in tests)
    consensus.BIP34Hash = uint256();
    consensus.BIP65Height = 1351; // BIP65 activated on regtest (Used in rpc activation tests)
    consensus.BIP66Height = 1251; // BIP66 activated on regtest (Used in rpc activation tests)
    consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
    consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // two weeks
    consensus.nPowTargetSpacing = 2.5 * 60;
    consensus.fPowAllowMinDifficultyBlocks = true;
    consensus.fPowNoRetargeting = true;
    consensus.nRuleChangeActivationThreshold = 108; // 75% for testchains
    consensus.nMinerConfirmationWindow = 144; // Faster than normal for regtest (144 instead of 2016)
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0;
    consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 999999999999ULL;
    consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
    consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 0;
    consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 999999999999ULL;
    consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
    consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 0;
    consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 999999999999ULL;

     // The best chain should have at least this much work.
     consensus.nMinimumChainWork = uint256S("0x00");
    
     // By default assume that the signatures in ancestors of this block are valid.
     consensus.defaultAssumeValid = uint256S("0x00");
    
     pchMessageStart[0] = 0xfa;
     pchMessageStart[1] = 0xbf;
     pchMessageStart[2] = 0xb5;
     pchMessageStart[3] = 0xda;
     nDefaultPort = 19444;
     nPruneAfterHeight = 1000;
    
     genesis = CreateGenesisBlock(1511279793, 0, 0x1d00ffff , 1, 50 * COIN);
     consensus.hashGenesisBlock = genesis.GetHash();
     assert(consensus.hashGenesisBlock == uint256S("0x9"));
     assert(genesis.hashMerkleRoot == uint256S("0x"));
    
     vFixedSeeds.clear(); //!< Regtest mode doesn't have any fixed seeds.
    

// : The term '//' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:14

  •          // This will figure out a valid hash and Nonce if you're
    
  •          ~~
    
    • CategoryInfo : ObjectNotFound: (//:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> vSeeds.clear(); //!< Regtest mode doesn't have any DNS seeds.

     fDefaultConsistencyChecks = true;
     fRequireStandard = false;
     fMineBlocksOnDemand = true;

     checkpointData = (CCheckpointData) {
         {
             {0, uint256S("530827f38f93b43ed12af0b3ad25a288dc02ed74d6d7857862df51fc56c416f9")},
         }
     };

     chainTxData = ChainTxData{
         0,
         0,
         0
     };

     base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);
     base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
     base58Prefixes[SCRIPT_ADDRESS2] = std::vector<unsigned char>(1,58);
     base58Prefixes[SECRET_KEY] =     std::vector<unsigned char>(1,239);
     base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
     base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
 }

};

static std::unique_ptr globalChainParams;

const CChainParams &Params() {
assert(globalChainParams);
return *globalChainParams;
}

std::unique_ptr CreateChainParams(const std::string& chain)
{
if (chain == CBaseChainParams::MAIN)
return std::unique_ptr(new CMainParams());
else if (chain == CBaseChainParams::TESTNET)
return std::unique_ptr(new CTestNetParams());
else if (chain == CBaseChainParams::REGTEST)
return std::unique_ptr(new CRegTestParams());
throw std::runtime_error(strprintf("%s: Unknown chain %s.", func, chain));
}

void SelectParams(const std::string& network)
{
SelectBaseParams(network);
globalChainParams = CreateChainParams(network);
}

void UpdateVersionBitsParameters(Consensus::DeploymentPos d, int64_t nStartTime, int64_t nTimeout)
{
globalChainParams->UpdateVersionBitsParameters(d, nStartTime, nTimeout);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant