diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-10-21 15:19:13 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-10-21 15:19:19 +0200 |
commit | ddba582377f1f7200ac15492603678f716e2dc22 (patch) | |
tree | 6f2d8e89ed0aa316b4ef6626a63f428cbba5e721 /src/wallet.cpp | |
parent | d12b69410681281694eeec10444fbdd9c8c31384 (diff) |
Bugfix: do not mark all future coins spent
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r-- | src/wallet.cpp | 4 |
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++) |