2
I'm trying to create a testcoin using litecoin. To create genesis block I changed some lines to :
block.nTime = 1390948469; // current time
uint256 hashGenesisBlock("0x"); //I dont now it's true or false
uint256 hash = block.GetHash();
printf("%s\n", hash.ToString().c_str());
printf("%s\n", hashGenesisBlock.ToString().c_str());
printf("%s\n", block.hashMerkleRoot.ToString().c_str());
assert(block.hashMerkleRoot == uint256("0x")); //I dont now it's true or false.
block.print();
assert(hash == hashGenesisBlock);
When I build daemon and launch it, I'm getting this error:
litecoind: main.cpp:2788: bool InitBlockIndex(): Assertion `hash == hashGenesisBlock' failed.
Aborted
When I check the ./litecoin debug.log file, I'm seeing the previous hashMerkleRoot and hashGenesisBlock that litecoin uses now. I can't create new hash and merkle root.
I changed the
pszTimestamp, put the last unix time. After I compiled and started to daemon, I'm gettinglitecoind: main.cpp:2788: bool InitBlockIndex(): Assertion hash == hashGenesisBlock' failed. Aborted, When I check the debug.log, I'm seeing litecoin's original genesis and merkleroot hashes. What I'm doing wrong ? – ZG-RG – 2014-01-29T19:45:05.823I tried this but I get
ERROR: CheckProofOfWork() : hash doesn't match nBits- any ideas? – Claudiu – 2014-02-28T00:57:23.783Hello. Now is source changed a lot. And some variables existed doesn't exist, or changed name or new variables come. So how to do this (create new genesis block to make new alt-coin) based on new source currently? – creator – 2018-02-17T05:36:34.707