Browse Source

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.
0.10
b6393ce9-d324-4fe1-996b-acf82dbc3d53 11 years ago
parent
commit
fdbc2b142d
  1. 2
      src/wallet.h

2
src/wallet.h

@ -702,7 +702,7 @@ public: @@ -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

Loading…
Cancel
Save