This commit is contained in:
jl777
2016-10-29 08:58:03 -03:00
parent c0d4bfa19f
commit ce0d45422b
2 changed files with 9 additions and 0 deletions

View File

@@ -191,6 +191,14 @@ CBlock CreateGenesisBlock(const char* pszTimestamp, const CScript& genesisOutput
genesis.hashMerkleRoot = BlockMerkleRoot(genesis);
return genesis;
}
#define GENESIS_STRING "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"
CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
{
const char* pszTimestamp = GENESIS_STRING;
const CScript genesisOutputScript = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG;
return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward);
}
void *chainparams_commandline(void *ptr)
{

View File

@@ -16,6 +16,7 @@
#define GENESIS_NBITS 0x1f00ffff
extern uint32_t ASSETCHAINS_TIMESTAMP;
CBlock CreateGenesisBlock(const char* pszTimestamp, const CScript& genesisOutputScript, uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward);
CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward);
#include <vector>