Skip to content

Commit 61c8596

Browse files
author
hugheml@gmail.com
committed
Reset blockchain
Mine new testnet genesis block
1 parent 03eba21 commit 61c8596

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main.cpp

Lines changed: 7 additions & 7 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("0xb4283759f3afb12a4ef86d2a74dd904d6e9edb05da168a8e60a1ee4e46f79808");
33+
uint256 hashGenesisBlock("0x");
3434
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 20); // starting difficulty is 1 / 2^12
3535
CBlockIndex* pindexGenesisBlock = NULL;
3636
int nBestHeight = -1;
@@ -1981,7 +1981,7 @@ bool LoadBlockIndex(bool fAllowNew)
19811981
pchMessageStart[1] = 0xc0;
19821982
pchMessageStart[2] = 0xb8;
19831983
pchMessageStart[3] = 0xdb;
1984-
hashGenesisBlock = uint256("0x6f1e729ada4afb516f886a9699c45d4776811835647cd7e5bdea24365ad36201");
1984+
hashGenesisBlock = uint256("0xff8a7b0d15f0db37ffc99c5342338b742d4d220d6e1025e66173e90c4207bd70");
19851985
}
19861986

19871987
//
@@ -2014,14 +2014,14 @@ bool LoadBlockIndex(bool fAllowNew)
20142014
block.hashPrevBlock = 0;
20152015
block.hashMerkleRoot = block.BuildMerkleTree();
20162016
block.nVersion = 1;
2017-
block.nTime = 1396297065; //epochtime
2017+
block.nTime = 1396372220; //epochtime
20182018
block.nBits = 0x1e0ffff0;
2019-
block.nNonce = 1384335;
2019+
block.nNonce = 0;
20202020

20212021
if (fTestNet)
20222022
{
2023-
block.nTime = 1396278000;
2024-
block.nNonce = 2512106;
2023+
block.nTime = 1396372220;
2024+
block.nNonce = 195519;
20252025
}
20262026

20272027
//// debug print
@@ -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 (false && block.GetHash() != hashGenesisBlock)
2034+
if (true && 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)