Bitcoin Forum
July 12, 2024, 08:48:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: hashGenesisBlock and block.nNonce for TESTNET? How can I find it?  (Read 161 times)
Many Coins (OP)
Member
**
Offline Offline

Activity: 266
Merit: 11

Lord Shiva


View Profile
February 17, 2018, 01:44:28 PM
 #1

From what parameters is the genesisHash calculated for TESTNET?

For MAINNET it is a verbalized Timestamp.

But where is a verbalized Timestamp for TESTNET?

Thank you.
Soulforged
Jr. Member
*
Offline Offline

Activity: 40
Merit: 7


View Profile
February 17, 2018, 02:45:16 PM
 #2

From what parameters is the genesisHash calculated for TESTNET?

For MAINNET it is a verbalized Timestamp.

But where is a verbalized Timestamp for TESTNET?

Thank you.

You can find the information in src/chainparams.cpp. The genesis block is made up of a number of variables, here's the key ones:

Main:
pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks";
nTime = 1231006505
nNonce = 2083236893

pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks";
nTime = 1296688602
nNonce = 414098458
Many Coins (OP)
Member
**
Offline Offline

Activity: 266
Merit: 11

Lord Shiva


View Profile
February 17, 2018, 02:53:57 PM
 #3

You can find the information in src/chainparams.cpp. The genesis block is made up of a number of variables, here's the key ones:

Main:
pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks";
nTime = 1231006505
nNonce = 2083236893

pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks";
nTime = 1296688602
nNonce = 414098458


Ok! And pszTimestamp must be exactly the same for both?



Soulforged
Jr. Member
*
Offline Offline

Activity: 40
Merit: 7


View Profile
February 17, 2018, 03:42:31 PM
 #4

If you want to connect to the Bitcoin Testnet (version 3) then it needs to be the same. If you want to create your own genesis block (and create your very own blockchain) you can change it then re-generate the other hashs manually. There are a few youtube videos which show you how to do it.
Many Coins (OP)
Member
**
Offline Offline

Activity: 266
Merit: 11

Lord Shiva


View Profile
February 17, 2018, 04:57:44 PM
 #5

If you want to connect to the Bitcoin Testnet (version 3) then it needs to be the same. If you want to create your own genesis block (and create your very own blockchain) you can change it then re-generate the other hashs manually. There are a few youtube videos which show you how to do it.

Hmmm... I do not searche it on YouTube yet Smiley

Thank you!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!