git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5a4c7d3
)
Fix local stake weight calculation
v0.4.3-nvc-f
author
alexhz
<balthazar@yandex.ru>
Thu, 20 Jun 2013 18:52:58 +0000 (18:52 +0000)
committer
alexhz
<balthazar@yandex.ru>
Thu, 20 Jun 2013 18:52:58 +0000 (18:52 +0000)
src/wallet.cpp
patch
|
blob
|
history
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
9cee9ef
..
eb83806
100644
(file)
--- a/
src/wallet.cpp
+++ b/
src/wallet.cpp
@@
-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);