PPCoin: Fix coinstake creation since 2a7d702
authorSunny King <sunnyking9999@gmail.com>
Mon, 17 Sep 2012 02:46:40 +0000 (03:46 +0100)
committerSunny King <sunnyking9999@gmail.com>
Mon, 17 Sep 2012 02:46:40 +0000 (03:46 +0100)
src/wallet.cpp

index be75141..1066dff 100644 (file)
@@ -1247,7 +1247,7 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
         CBlock block;
         if (!block.ReadFromDisk(txindex.pos.nFile, txindex.pos.nBlockPos, false))
             continue;
-        if (block.GetBlockTime() + nStakeMinAge > txNew.nTime)
+        if (block.GetBlockTime() + nStakeMinAge > txNew.nTime - (60 * 60 * 2))
             continue; // only count coins meeting min age requirement
 
         int64 nValueIn = pcoin.first->vout[pcoin.second].nValue;