From fdbc2b142d541f841e94119de909c8268dad61ac Mon Sep 17 00:00:00 2001 From: b6393ce9-d324-4fe1-996b-acf82dbc3d53 Date: Wed, 12 Feb 2014 05:41:32 +0000 Subject: 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. --- src/wallet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3