git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7c1fbd9
)
fix
author
Alex
<alex@Mac-Alex.local>
Sat, 11 May 2013 01:21:28 +0000 (
05:21
+0400)
committer
Alex
<alex@Mac-Alex.local>
Sat, 11 May 2013 01:21:28 +0000 (
05:21
+0400)
src/wallet.cpp
patch
|
blob
|
history
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
e84920f
..
c30943b
100644
(file)
--- a/
src/wallet.cpp
+++ b/
src/wallet.cpp
@@
-1013,6
+1013,9
@@
void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed) const
if (pcoin->IsCoinBase() && pcoin->GetBlocksToMaturity() > 0)
continue;
+ if(pcoin->IsCoinStake() && pcoin->GetBlocksToMaturity() > 0)
+ continue;
+
for (unsigned int i = 0; i < pcoin->vout.size(); i++)
if (!(pcoin->IsSpent(i)) && IsMine(pcoin->vout[i]) && pcoin->vout[i].nValue > 0)
vCoins.push_back(COutput(pcoin, i, pcoin->GetDepthInMainChain()));