Primecoin: New genesis block for release main net and test net

master
Sunny King 2013-07-06 01:19:02 +01:00
parent e7711f3c97
commit 25659c1ec8
2 changed files with 9 additions and 9 deletions

View File

@ -2065,7 +2065,7 @@ bool CBlock::CheckBlock(CValidationState &state, bool fCheckPOW, bool fCheckMerk
// Primecoin: proof of work is checked in ProcessBlock()
// Check timestamp
if (GetBlockTime() > GetAdjustedTime() + 2 * 60 * 60 && GetHash() != hashGenesisBlock)
if (GetBlockTime() > GetAdjustedTime() + 2 * 60 * 60)
return state.Invalid(error("CheckBlock() : block timestamp too far in the future"));
// First transaction must be coinbase, the rest must not be
@ -2772,16 +2772,16 @@ bool InitBlockIndex() {
block.vtx.push_back(txNew);
block.hashPrevBlock = 0;
block.hashMerkleRoot = block.BuildMerkleTree();
block.nTime = 1373220000;
block.nTime = 1373064429;
block.nBits = TargetFromInt(6);
block.nNonce = 2857;
block.bnPrimeChainMultiplier = ((uint64) 592663) * (uint64)(2 * 3 * 5 * 7 * 11 * 13 * 17 * 19 * 23);
block.nNonce = 383;
block.bnPrimeChainMultiplier = ((uint64) 532541) * (uint64)(2 * 3 * 5 * 7 * 11 * 13 * 17 * 19 * 23);
if (fTestNet)
{
block.nTime = 1373220000;
block.nNonce = 279;
block.bnPrimeChainMultiplier = ((uint64) 636147) * (uint64)(2 * 3 * 5 * 7 * 11 * 13 * 17 * 19 * 23);
block.nTime = 1373063882;
block.nNonce = 1513;
block.bnPrimeChainMultiplier = ((uint64) 585641) * (uint64)(2 * 3 * 5 * 7 * 11 * 13 * 17 * 19 * 23);
}
//// debug print

View File

@ -64,8 +64,8 @@ static const int fHaveUPnP = true;
static const int fHaveUPnP = false;
#endif
static const uint256 hashGenesisBlockOfficial("0x6f076ee2b7463cb31c612144bd30782cc2498efebdb5788f36daa369a81f5f15");
static const uint256 hashGenesisBlockTestNet("0x9e6eae2c3cdb1380608a165abfb205e00427c107aadec429622aa1b3edbfb2f0");
static const uint256 hashGenesisBlockOfficial("0x963d17ba4dc753138078a2f56afb3af9674e2546822badff26837db9a0152106");
static const uint256 hashGenesisBlockTestNet("0x221156cf301bc3585e72de34fe1efdb6fbd703bc27cfc468faa1cdd889d0efa0");
extern CScript COINBASE_FLAGS;