1
So if one was to try to create an altcoin that was a fork of the bitcoin code would he/she have to create a genesis block independently first?
static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
{
const char* pszTimestamp = "anything you want";
const CScript genesisOutputScript = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG;
return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward);
}
Is changing the variable for pszTimestamp in the above function from chainparams.cpp sufficient?
If that's all that's necessary, then what is the purpose of this "gensis block generation script"*?
*From this question.
so in the past I would have had to create a genesis block from a script but now I can just define the
pszTimestampfromchainparams.cppand it will get it up and running just like that? – smatthewenglish – 2017-05-11T11:32:28.897