From 03aa39a354a0aa7331df82e8d401b29e5cb7082c Mon Sep 17 00:00:00 2001 From: Sunny King Date: Fri, 10 Aug 2012 01:44:16 +0100 Subject: [PATCH] PPCoin: Fix first block hash target since 4523045 --- src/main.cpp | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b879fc6..70c761d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -899,9 +899,8 @@ const CBlockIndex* GetLastBlockIndex(const CBlockIndex* pindex, bool fProofOfSta unsigned int static GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfStake) { - // Genesis block - if (pindexLast == NULL || pindexLast->pprev == NULL) - return bnProofOfWorkLimit.GetCompact(); + if (pindexLast == NULL) + return bnProofOfWorkLimit.GetCompact(); // genesis block const CBlockIndex* pindexPrev = GetLastBlockIndex(pindexLast, fProofOfStake); if (pindexPrev->pprev == NULL) -- 1.7.1