Mining of the Genesis block testnet?

0

Bitcoin 0.14 I want to try mining first genesis block, a new time, but don't know how to start testnet

used to create GenesisH0 https://github.com/lhartikk/GenesisH0

menfix

Posted 2017-03-13T10:32:55.020

Reputation: 25

You need to change some code assertion values for your bitcoin testnet. the peershares wiki should give you a good place to start so you can see what you need to look for in the code for generating a genesis block. https://github.com/Peershares/Peershares/wiki/Genesis-Block-(Starting-a-New-Blockchain-Instance)

Fuzzybear 2017-03-13T10:38:23.540

The old descriptions, it is out of date alreadymenfix 2017-03-13T11:02:15.717

Answers

1

To mine the testnet genesis block you would use.

python genesis.py -z "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" -n 414098458 -t 1296688602

If you want to create a new genesis block run the following with your own time and leave out the nonce, you will be generated a new nonce.

python genesis.py -z "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" -t 1501755824

Here is what I get when running the above command, it will just take some time to find a block.

python genesis.py -z "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" -t 1501755824
04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73
algorithm: SHA256
merkle hash: 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
pszTimestamp: The Times 03/Jan/2009 Chancellor on brink of second bailout for banks
pubkey: 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f
time: 1501755824
bits: 0x1d00ffff
Searching for genesis hash..
183984.0 hash/s, estimate: 6.5 h
nonce: 835054047
genesis hash: 00000000ad3d3d6aa486313522fdd4328509feefe8c37ead2a609884c6cbab92

To add your new genesis block to the Bitcoin testnet update the src/chainparams.cpp file, also delete any checkpointData entries on the testnet as those no longer apply to your new testnet chain.

Peter Bushnell

Posted 2017-03-13T10:32:55.020

Reputation: 194

This code crashes often when mining a genesis block that isn't the original bitcoin genesis block :(Barney Chambers 2017-11-14T08:33:40.800

What are you typing in exactly? If you paste it here I can help, I use GenesisH0 often to add RegTest and TestNet genesis blocks to coins that do not have them and once in a while a new MainNet block.Peter Bushnell 2017-11-16T15:18:39.977