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:
parent
19e5b9d2df
commit
fdbc2b142d
1 changed files with 1 additions and 1 deletions
|
@ -702,7 +702,7 @@ public:
|
||||||
return false;
|
return false;
|
||||||
if (GetDepthInMainChain() >= 1)
|
if (GetDepthInMainChain() >= 1)
|
||||||
return true;
|
return true;
|
||||||
if (!IsFromMe()) // using wtx's cached debit
|
if (!bSpendZeroConfChange || !IsFromMe()) // using wtx's cached debit
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// If no confirmations but it's from us, we can still
|
// If no confirmations but it's from us, we can still
|
||||||
|
|
Loading…
Reference in a new issue