Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Solidsmart on November 10, 2014, 01:00:49 PM



Title: Anyone know a Merkle Root and Genesis Block Generator? for new altcoin
Post by: Solidsmart on November 10, 2014, 01:00:49 PM
anything wher i can just type and it outputs merkle, like GenesisH0


Title: Re: Anyone know a Merkle Root and Genesis Block Generator? for new altcoin
Post by: cloudboy on November 10, 2014, 01:56:32 PM
You do it from main.cpp when you run it the first time.


Title: Re: Anyone know a Merkle Root and Genesis Block Generator? for new altcoin
Post by: tacotime on November 10, 2014, 03:41:06 PM
https://github.com/decred/genesisminer


Title: Re: Anyone know a Merkle Root and Genesis Block Generator? for new altcoin
Post by: jasemoney on November 10, 2014, 04:01:45 PM
From Fisheater on this thread: https://bitcointalk.org/index.php?topic=225690.0 (https://bitcointalk.org/index.php?topic=225690.0) "*** 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!



Title: Re: Anyone know a Merkle Root and Genesis Block Generator? for new altcoin
Post by: iGotSpots on November 10, 2014, 07:46:53 PM
Your computer


Title: Re: Anyone know a Merkle Root and Genesis Block Generator? for new altcoin
Post by: cloudboy on November 10, 2014, 07:48:11 PM
Your computer

lolol +1


Title: Genesis Block
Post by: tearodactyl on April 20, 2017, 08:53:20 PM
2014 methods no longer work.
2017 Bitcoin / Litecoin codebase update
http://practicecoin.com/index.php/2017/04/19/genesis-block/