aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.h
diff options
context:
space:
mode:
authorb6393ce9-d324-4fe1-996b-acf82dbc3d53 <m8r-emkdvd@mailinator.com>2014-02-12 05:41:32 +0000
committerb6393ce9-d324-4fe1-996b-acf82dbc3d53 <m8r-emkdvd@mailinator.com>2014-02-12 05:41:32 +0000
commitfdbc2b142d541f841e94119de909c8268dad61ac (patch)
tree71ad95a6cd2a3f0c96f93164f43cf3879da7af99 /src/wallet.h
parent19e5b9d2dfcac4efadba636745485d9660fb1abe (diff)
If requested, actually treat uncomfirmed change as being uncomfirmed
This commit strengthens 1bbca249b202c4802cc2c4d4de4a26e6392b4d92 by updating the CWalletTx::IsConfirmed() function. If (bSpendZeroConfChange==false), then IsConfirmed() should actually treat unconfirmed change as being unconfirmed.
Diffstat (limited to 'src/wallet.h')
-rw-r--r--src/wallet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.h b/src/wallet.h
index 1bf9bb185c..e5104f1362 100644
--- a/src/wallet.h
+++ b/src/wallet.h
@@ -702,7 +702,7 @@ public:
return false;
if (GetDepthInMainChain() >= 1)
return true;
- if (!IsFromMe()) // using wtx's cached debit
+ if (!bSpendZeroConfChange || !IsFromMe()) // using wtx's cached debit
return false;
// If no confirmations but it's from us, we can still