Title: Genesis block compile error Post by: wsxdrfv on February 15, 2018, 01:49:02 AM 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 = 8) Maybe I need to revise more elsewhere to start new blockchain? How to fix? Thanks. Title: Re: Genesis block compile error Post by: achow101 on February 15, 2018, 03:22:02 AM 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).
Title: Re: Genesis block compile error Post by: wsxdrfv on February 17, 2018, 08:07:36 AM 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. Title: Re: Genesis block compile error Post by: mmo4me.2016 on February 17, 2018, 08:28:51 AM Need more work to creat new coin and run it! You can seaching more info in this forum or via google!
Title: Re: Genesis block compile error Post by: wsxdrfv on February 17, 2018, 12:48:51 PM 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. |