mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user