I am always one to Google/Search forums until I find the answer, but after 10 hours of trying, I have come to the forums to get an answer.
I am modifying the new Litecoin script (for educational reasons) here:
https://github.com/litecoin-project/litecoinFor the life of me, I am unable to generate a genesis block, I keep getting:
main.cpp:2796: bool InitBlockIndex(): Assertion `hash == hashGenesisBlock' failed.
I check my debug.log file and get:
2013-12-30 04:03:26 84d3cf22c9d4a4cbda424fc0e5a7169f33780395039b3959fec424649d690d07
2013-12-30 04:03:26 f5ae71e26c74beacc88382716aced69cddf3dffff24f384e1808905e0188f68f
2013-12-30 04:03:26 b6580b90a6dd4b1169d76f034d408cdaa07f44e653bca4da0cd4216d8b22cc0d
2013-12-30 04:03:26 CBlock(hash=84d3cf22c9d4a4cbda424fc0e5a7169f33780395039b3959fec424649d690d07, input=0100000000000000000000000000000000000000000000000000000000000000000000000dcc228b6d21d40cdaa4bc53e6447fa0da8c404d036fd769114bdda6900b58b6f6028c4ef0ff0f1e00000000, PoW=7cf4e4a52ed1ba6569c2d9a9f50a8f1e4ac4c2064408de1e20c5292da185cd8c, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=b6580b90a6dd4b1169d76f034d408cdaa07f44e653bca4da0cd4216d8b22cc0d, nTime=1317798646, nBits=1e0ffff0, nNonce=0, vtx=1)
2013-12-30 04:03:26 CTransaction(hash=b6580b90a6dd4b1169d76f034d408cdaa07f44e653bca4da0cd4216d8b22cc0d, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01043a54686520477561726469616e20312f31322f3133204d6972616e6461204861727420486f7720746f2073757276697665204368726973746d6173)
CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
vMerkleTree: b6580b90a6dd4b1169d76f034d408cdaa07f44e653bca4da0cd4216d8b22cc0d
Which doesn't give me:
block.nTime = X
block.nNonce = X
block.GetHash = X
As mentioned
https://bitcointalksearch.org/topic/m.2035449 and many other forums I have visited in the past 10hrs
I am inserting the hashMerkleRoot, block.nTime and block.nBits in correctly (after generating the hashMerkleRoot from debug.log) but after I try to run the daemon (or testnet) I am getting that same error.
Any ideas?