Skip to content

Commit 48e4af4

Browse files
author
hugheml@gmail.com
committed
Regenerate mainnet genesis block
1 parent ba5de13 commit 48e4af4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CTxMemPool mempool;
3030
unsigned int nTransactionsUpdated = 0;
3131

3232
map<uint256, CBlockIndex*> mapBlockIndex;
33-
uint256 hashGenesisBlock("0x");
33+
uint256 hashGenesisBlock("0xbc842bf576183da755ba26f4098dc441753da65a50260ddd40cfdb22b5cdc205");
3434
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 20); // starting difficulty is 1 / 2^12
3535
CBlockIndex* pindexGenesisBlock = NULL;
3636
int nBestHeight = -1;
@@ -2014,9 +2014,9 @@ bool LoadBlockIndex(bool fAllowNew)
20142014
block.hashPrevBlock = 0;
20152015
block.hashMerkleRoot = block.BuildMerkleTree();
20162016
block.nVersion = 1;
2017-
block.nTime = 1396385485; //epochtime
2017+
block.nTime = 1396447210; //epochtime
20182018
block.nBits = 0x1e0ffff0;
2019-
block.nNonce = 0;
2019+
block.nNonce = 1372813;
20202020

20212021
if (fTestNet)
20222022
{
@@ -2031,7 +2031,7 @@ bool LoadBlockIndex(bool fAllowNew)
20312031
assert(block.hashMerkleRoot == uint256("0xa7ba2b8be14f193f9917d75bcc2579ffa596ec2c5f8ab4232d6a1cbe5313690a"));
20322032

20332033
// If genesis block hash does not match, then generate new genesis hash.
2034-
if (true && block.GetHash() != hashGenesisBlock)
2034+
if (false && block.GetHash() != hashGenesisBlock)
20352035
{
20362036
printf("Searching for genesis block...\n");
20372037
// This will figure out a valid hash and Nonce if you're

0 commit comments

Comments
 (0)