Pages:
Author

Topic: The genesis block is hurting my soul.. Please help [25 MegaCoin bounty] - page 3. (Read 11722 times)

member
Activity: 112
Merit: 10
Thanks you! I've regained my sanity!

That worked perfectly! and I'm sure this will help other people too!!

Please PM me your MegaCoin Wallet ID and I will send you the bounty Smiley
hero member
Activity: 525
Merit: 529
Hi,

This is your genesis block hash:
Quote
2013-12-30 04:03:26 84d3cf22c9d4a4cbda424fc0e5a7169f33780395039b3959fec424649d690d07

Put that to this line:
Quote

This is your merkleroot:
Quote
2013-12-30 04:03:26 b6580b90a6dd4b1169d76f034d408cdaa07f44e653bca4da0cd4216d8b22cc0d

Put that to this line:
Quote

After if you get somethink like this:
Quote
CheckProofOfWork() : hash doesn't match nBits

This genesis block is not good, because doest fit for start difficulty.
need a new one. Put this source code before this line (block.print()):
Quote

run the app, this will "mine" a new genesis block (need lot of time!!) for you.
 if it's founded, modify your source: nNonce, nTime and the new hash (GetHash = XX) for genesis block hash.

you can remove the inserted code, and you have a new altcoin  Wink

(if you want a testnet genesis block, do the same and dont forget to start with -testnet, and modify the testnet nNonce, nTime and hash!)

Elbandi
member
Activity: 112
Merit: 10
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/litecoin

For the life of me, I am unable to generate a genesis block, I keep getting:

Code:
main.cpp:2796: bool InitBlockIndex(): Assertion `hash == hashGenesisBlock' failed.

I check my debug.log file and get:

Code:
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?
Pages:
Jump to: