src/chainparams.cpp
/**
 * Build the genesis block. Note that the output of its generation
 * transaction cannot be spent since it did not originally exist in the
 * database (and is in any case of zero value).
 *
 * >>> from pyblake2 import blake2s
 * >>> 'Zelcash' + blake2s(b'TODO').hexdigest()
 *
 * CBlock(hash=00052461, ver=4, hashPrevBlock=00000000000000, hashMerkleRoot=94c7ae, nTime=1516980000, nBits=1f07ffff, nNonce=6796, vtx=1)
 *   CTransaction(hash=94c7ae, ver=1, vin.size=1, vout.size=1, nLockTime=0)
 *     CTxIn(COutPoint(000000, -1), coinbase 04ffff071f0104455a6361736830623963346565663862376363343137656535303031653335303039383462366665613335363833613763616331343161303433633432303634383335643334)
 *     CTxOut(nValue=0.00000000, scriptPubKey=0x5F1DF16B2B704C8A578D0B)
 *   vMerkleTree: 94c7ae
 */
Build the genesis block. Note that the output of its generation
transaction cannot be spent since it did not originally exist in the
database (and is in any case of zero value).




Build the genesis block . Note that the output of its generation transaction cannot be spent since it did not originally exist in the database ( and is in any case of zero value ) .
static CBlock CreateGenesisBlock(uint32_t nTime, const uint256& nNonce, const std::vector<unsigned char>& nSolution, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
{
    const char* pszTimestamp = "Zelcash06f40b01ab1f135bd96c5d72f8e37c7906dc216dcaaa36fcd00ebf9b8e109567";
    const CScript genesisOutputScript = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG;
    return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nSolution, nBits, nVersion, genesisReward);
}
static CBlock CreateGenesisBlock ( uint32_t nTime , const uint256 & nNonce , const std :: vector < unsigned char > & nSolution , uint32_t nBits , int32_t nVersion , const CAmount & genesisReward ) { const char * pszTimestamp = " " ; const CScript genesisOutputScript = CScript ( ) << ParseHex ( " " ) << OP_CHECKSIG ; return CreateGenesisBlock ( pszTimestamp , genesisOutputScript , nTime , nNonce , nSolution , nBits , nVersion , genesisReward ) ; }
Build the genesis block.
Build the genesis block .