The official CryptoNote repository has been updated to include smart genesis block creation. Previously, it was required to comment and uncomment some parts of the source code. With our new currency creation flow, genesis block coinbase tx hash is created as follows:
1) Follow the
forking guide and define all the parameters for your currency except for GENESIS_COINBASE_TX_HEX in /src/cryptonote_config.h. You should leave it blank:
#define GENESIS_COINBASE_TX_HEX ""
2) Compile the binaries.
3) Start the daemon with the --print-genesis-tx argument:
cryptonotecoind --print-genesis-tx
The daemon will print out the genesis block coinbase transaction hash.
4) Insert the printed out tx hash to GENESIS_COINBASE_TX_HEX in src/cryptonote_config.h
#define GENESIS_COINBASE_TX_HEX "013c01ff0001ffff...785a33d9ebdba68b0"
5) Recompile the binaries. You are now ready to
announce and launch your coin.
Links to the repository and the forking guide:
https://github.com/cryptonotefoundation/cryptonotehttps://cryptonotestarter.org/inner.html#genesisOriginal discussion:
https://forum.cryptonote.org/viewtopic.php?f=5&t=220&p=806#p806