From 7552b10584388bb3509e046bf11b66578e965814 Mon Sep 17 00:00:00 2001 From: Sunny King Date: Mon, 17 Sep 2012 03:46:40 +0100 Subject: [PATCH] PPCoin: Fix coinstake creation since 2a7d702 --- src/wallet.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index be75141..1066dff 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -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; -- 1.7.1