aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-02-13 12:28:11 +0100
committerWladimir J. van der Laan <[email protected]>2014-02-13 12:28:19 +0100
commitea062655e045b68d568d2faf7abe946deb00d46d (patch)
tree71ad95a6cd2a3f0c96f93164f43cf3879da7af99 /src
parentMerge pull request #3651 (diff)
parentIf requested, actually treat uncomfirmed change as being uncomfirmed (diff)
downloaddiscoin-ea062655e045b68d568d2faf7abe946deb00d46d.tar.xz
discoin-ea062655e045b68d568d2faf7abe946deb00d46d.zip
Merge pull request #3657
fdbc2b1 If requested, actually treat uncomfirmed change as being uncomfirmed (b6393ce9-d324-4fe1-996b-acf82dbc3d53)
Diffstat (limited to 'src')
-rw-r--r--src/wallet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.h b/src/wallet.h
index 1bf9bb185..e5104f136 100644
--- a/src/wallet.h
+++ b/src/wallet.h
@@ -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