aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet.cpp')
-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++)