Skip to content

Commit

Permalink
Primecoin: New genesis block for release main net and test net
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyking committed Jul 6, 2013
1 parent e7711f3 commit 25659c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/main.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main.h
Expand Up @@ -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;

Expand Down

0 comments on commit 25659c1

Please sign in to comment.