diff options
-rw-r--r-- | src/wallet.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet.h b/src/wallet.h index e2e89fffe7..487c258a20 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -620,9 +620,10 @@ public: return nAvailableCreditCached; int64_t nCredit = 0; + uint256 hashTx = GetHash(); for (unsigned int i = 0; i < vout.size(); i++) { - if (!pwallet->IsSpent(GetHash(), i)) + if (!pwallet->IsSpent(hashTx, i)) { const CTxOut &txout = vout[i]; nCredit += pwallet->GetCredit(txout); |