|
|
@ -620,9 +620,10 @@ public: |
|
|
|
return nAvailableCreditCached; |
|
|
|
return nAvailableCreditCached; |
|
|
|
|
|
|
|
|
|
|
|
int64_t nCredit = 0; |
|
|
|
int64_t nCredit = 0; |
|
|
|
|
|
|
|
uint256 hashTx = GetHash(); |
|
|
|
for (unsigned int i = 0; i < vout.size(); i++) |
|
|
|
for (unsigned int i = 0; i < vout.size(); i++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!pwallet->IsSpent(GetHash(), i)) |
|
|
|
if (!pwallet->IsSpent(hashTx, i)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
const CTxOut &txout = vout[i]; |
|
|
|
const CTxOut &txout = vout[i]; |
|
|
|
nCredit += pwallet->GetCredit(txout); |
|
|
|
nCredit += pwallet->GetCredit(txout); |
|
|
|