Fix local stake weight calculation v0.4.3-nvc-f
authoralexhz <balthazar@yandex.ru>
Thu, 20 Jun 2013 18:52:58 +0000 (18:52 +0000)
committeralexhz <balthazar@yandex.ru>
Thu, 20 Jun 2013 18:52:58 +0000 (18:52 +0000)
src/wallet.cpp

index 9cee9ef..eb83806 100644 (file)
@@ -1376,7 +1376,7 @@ uint64 CWallet::GetStakeMintPower(const CKeyStore& keystore)
         if (pcoin.first->nTime + nStakeMaxAge > GetTime())
             continue;
 
-        CBigNum bnCentSecond = CBigNum(pcoin.first->GetValueOut()) * (GetTime()-pcoin.first->nTime) / CENT;
+        CBigNum bnCentSecond = CBigNum(pcoin.first->vout[pcoin.second].nValue) * (GetTime()-pcoin.first->nTime) / CENT;
         CBigNum bnCoinDay = bnCentSecond * CENT / COIN / (24 * 60 * 60);