aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-10-21 16:20:04 -0700
committerGregory Maxwell <greg@xiph.org>2012-10-21 16:20:04 -0700
commit2ef15697f84208e05764046dd86bcf067029a9b8 (patch)
tree0da83a2315e6b650468587fe174f72529400f391 /src
parentef0ae25c2be04340cc34b0f1807cb75ca09fbd32 (diff)
parentddba582377f1f7200ac15492603678f716e2dc22 (diff)
Merge pull request #1939 from sipa/bugfix_zerobalance
Bugfix: do not mark all future coins spent
Diffstat (limited to 'src')
-rw-r--r--src/wallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 1498ff28b7..dc6169c4b8 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -780,8 +780,8 @@ void CWallet::ReacceptWalletTransactions()
CCoins coins;
bool fUpdated = false;
- bool fNotFound = pcoinsTip->GetCoins(wtx.GetHash(), coins);
- if (!fNotFound || wtx.GetDepthInMainChain() > 0)
+ bool fFound = pcoinsTip->GetCoins(wtx.GetHash(), coins);
+ if (fFound || wtx.GetDepthInMainChain() > 0)
{
// Update fSpent if a tx got spent somewhere else by a copy of wallet.dat
for (unsigned int i = 0; i < wtx.vout.size(); i++)