From ddba582377f1f7200ac15492603678f716e2dc22 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 21 Oct 2012 15:19:13 +0200 Subject: [PATCH] Bugfix: do not mark all future coins spent --- src/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 1498ff28b..dc6169c4b 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++)