Hello
I'm trying to create a testcoin using litecoin. To create genesis block I changed some lines to :
const char* pszTimestamp = "This will be start of COIN.";
block.nTime = 1391032298; // current time
uint256 hashGenesisBlock("0x"); //I dont now it's true or false, I left it like that
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, I left it like that
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 hashes..
Where I'm doing mistake ?
Thanks.