Skip to content

Commit fdbc2b1

Browse files
author
b6393ce9-d324-4fe1-996b-acf82dbc3d53
committed
If requested, actually treat uncomfirmed change as being uncomfirmed
This commit strengthens 1bbca24 by updating the CWalletTx::IsConfirmed() function. If (bSpendZeroConfChange==false), then IsConfirmed() should actually treat unconfirmed change as being unconfirmed.
1 parent 19e5b9d commit fdbc2b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ class CWalletTx : public CMerkleTx
702702
return false;
703703
if (GetDepthInMainChain() >= 1)
704704
return true;
705-
if (!IsFromMe()) // using wtx's cached debit
705+
if (!bSpendZeroConfChange || !IsFromMe()) // using wtx's cached debit
706706
return false;
707707

708708
// If no confirmations but it's from us, we can still

0 commit comments

Comments
 (0)