Author

Topic: Genesis block compile error (Read 129 times)

jr. member
Activity: 413
Merit: 5
February 17, 2018, 07:48:51 AM
#5
Need more work to creat new coin and run it! You can seaching more info in this forum or via google!

I don't know. I can't find. Already did everything what I can.
sr. member
Activity: 812
Merit: 256
February 17, 2018, 03:28:51 AM
#4
Need more work to creat new coin and run it! You can seaching more info in this forum or via google!
jr. member
Activity: 413
Merit: 5
February 17, 2018, 03:07:36 AM
#3
Your genesis block is invalid; it probably does not have a valid proof of work. You will actually need to mine your genesis block which you can easily do by adding a while loop to the genesis block creation code (and a few other lines to check the PoW).

Can you please let me know the code to do it?

I can't find. Days of searching already done.
staff
Activity: 3458
Merit: 6793
Just writing some code
February 14, 2018, 10:22:02 PM
#2
Your genesis block is invalid; it probably does not have a valid proof of work. You will actually need to mine your genesis block which you can easily do by adding a while loop to the genesis block creation code (and a few other lines to check the PoW).
jr. member
Activity: 413
Merit: 5
February 14, 2018, 08:49:02 PM
#1
From newest bitcoin/litecoin source,

So I testing make new genesis block, based on new blockchain.

So I changed at 'chainparams.cpp'
pchMessageStart[0~4] value to random value for start new blockchain, (is this right?)

and also I changed following line's

consensus.hashGenesisBlock == uint256S("0x............");
genesis.hashMerkleRoot == uint256S("0x.....");

to value of mine. (knowing by printf code added above these lines)

After compile ('make'), run by ./bitcoind

but error says 'A fatal internal error occured, see debug.log file'

and debug.log says at end,

ReadBlockFromDisk : Errorrs in block header at CBlockDiskPos(nFile =0, nPos = Cool


Maybe I need to revise more elsewhere to start new blockchain?
How to fix?

Thanks.

Jump to: