Bitcoin Forum
December 15, 2024, 03:04:25 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Genesis block compile error  (Read 129 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
February 15, 2018, 01:49:02 AM
 #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.

achow101
Staff
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
February 15, 2018, 03:22:02 AM
 #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).

wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
February 17, 2018, 08: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.
mmo4me.2016
Sr. Member
****
Offline Offline

Activity: 812
Merit: 256



View Profile
February 17, 2018, 08: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!
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
February 17, 2018, 12:48:51 PM
 #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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!