Fix compilation error.
authorCryptoManiac <balthazar@yandex.ru>
Sun, 14 Feb 2016 17:04:24 +0000 (20:04 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Sun, 14 Feb 2016 17:04:24 +0000 (20:04 +0300)
src/main.cpp

index 68ae6a2..8a96379 100644 (file)
@@ -1190,7 +1190,7 @@ const CBlockIndex* GetLastBlockIndex(const CBlockIndex* pindex, bool fProofOfSta
 unsigned int GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfStake)
 {
     if (pindexLast == NULL)
-        return bnTargetLimit.GetCompact(); // genesis block
+        return bnProofOfWorkLimit.GetCompact(); // genesis block
 
     CBigNum bnTargetLimit = !fProofOfStake ? bnProofOfWorkLimit : GetProofOfStakeLimit(pindexLast->nHeight, pindexLast->nTime);