Alright, so here's what you're going to do. Go on
genesisgen on github, download genesis.c and build it. Once you have the executable, run
name.exe <pubkey> <timestamp> <nBits>.
In <pubkey> you should add your public key in uncompressed format. In <timestamp> your message. In <nBits> the target. Leave it on 486604799 (1d00ffff) which is the lowest you can have with a difficulty of 1.
Once you mine the genesis block, the program will return you the coinbase script, the scriptPubKey, the merkle hash, the byteswapped merkle hash, the unix time, the nonce and finally the genesis block's hash.
1. Change the genesisOutputScript to your scriptPubKey from
#L54.
2. Change genesis.hashMerkleRoot to the byteswapped merkle hash in
#L114.
3. Change consensus.hashGenesisBlock to your block's hash in
#L113.
4. Change the first two values from the CreateGenesisBlock function to the unix time and nonce respectively in
#L111.
5. Build Bitcoin Core.
I've made a tutorial here:
How to create your own altcoin (v0.20.1). It should be the same for the latest version of Bitcoin Core.
Hello blackhat, I am having a tremendous headacke trying to make the genesis block
I am trying to follow up your steps and searching info in the net but nothing that I do it´s right.
I already downloaded the genesis block folder
Opened genesis.c in sublime, but I don´t know how you build it right
I guess, I have to:
$ make
$ ./genesis
Usage: ./genesis [options] <pubkey> "<timestamp>" <nBits> <startNonce> <unixtime>
$ ./genesis 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" 486604799 2083236893 1231006505
nBits: 0x1d00ffff
startNonce: 2083236893
unixtime: 1231006505
I have to make the genesis with the code given in README.md but I donkt know how to make the codes exactly
Also, how I obtain the pubkey? asfar as i read, it should be given somewhere
I am a bit lost about this step...

and it is important to make it right and learn how to, since it is the most important step
Thanks for your time, as always