test
This commit is contained in:
@@ -191,6 +191,14 @@ CBlock CreateGenesisBlock(const char* pszTimestamp, const CScript& genesisOutput
|
|||||||
genesis.hashMerkleRoot = BlockMerkleRoot(genesis);
|
genesis.hashMerkleRoot = BlockMerkleRoot(genesis);
|
||||||
return 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)
|
void *chainparams_commandline(void *ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
#define GENESIS_NBITS 0x1f00ffff
|
#define GENESIS_NBITS 0x1f00ffff
|
||||||
extern uint32_t ASSETCHAINS_TIMESTAMP;
|
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(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>
|
#include <vector>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user