If requested, actually treat uncomfirmed change as being uncomfirmed

This commit strengthens 1bbca249b2 by updating the CWalletTx::IsConfirmed() function.

If (bSpendZeroConfChange==false), then IsConfirmed() should actually treat unconfirmed change as being unconfirmed.
This commit is contained in:
b6393ce9-d324-4fe1-996b-acf82dbc3d53 2014-02-12 05:41:32 +00:00
parent 19e5b9d2df
commit fdbc2b142d

View file

@ -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