Author

Topic: Anyone know a Merkle Root and Genesis Block Generator? for new altcoin (Read 1435 times)

full member
Activity: 235
Merit: 100
2014 methods no longer work.
2017 Bitcoin / Litecoin codebase update
http://practicecoin.com/index.php/2017/04/19/genesis-block/
hero member
Activity: 690
Merit: 501
legendary
Activity: 2548
Merit: 1054
CPU Web Mining 🕸️ on webmining.io
legendary
Activity: 1610
Merit: 1008
Forget-about-it
From Fisheater on this thread: https://bitcointalksearch.org/topic/complete-guide-on-how-to-create-a-new-alt-coin-225690 "*** Complete Guide on How to Create a New Alt Coin ***"

Quote
7.  Create genesis block. Some people get stuck there, it's really easy:
- find LoadBlockIndex() function, inside, change:
    - paraphrase (pszTimestamp) to any recent news phase.
    - get the latest unix time (do a google), and put in block.nTime.
    - set any nNonce (doesn't really matter)
you can change the time/nonce for testnet too, if you want to use it.
After you are done, save it. Now the genesis block will not match the hash check and merkle root check, it doesn't matter.

The first time you run the compiled code (daemon or qt), it will say "assertion failed". Just exit the program, go to
config dir (under AppData/Roaming), open the debug.log, get the hash after "block.GetHash() = ", copy and paste it to the beginnig of main.cpp, hashGenesisBlock. Also get the merkle root in the same log file, paste it to the ... position in the following code, in LoadBlockIndex()
Quote
      assert(block.hashMerkleRoot == uint256("0x..."));

recompile the code, and genesis block created!

hero member
Activity: 690
Merit: 501
You do it from main.cpp when you run it the first time.
member
Activity: 70
Merit: 10
anything wher i can just type and it outputs merkle, like GenesisH0
Jump to: