aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-10-21 15:19:13 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-10-21 15:19:19 +0200
commitddba582377f1f7200ac15492603678f716e2dc22 (patch)
tree6f2d8e89ed0aa316b4ef6626a63f428cbba5e721 /src
parentd12b69410681281694eeec10444fbdd9c8c31384 (diff)
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++)