# HG changeset patch # User Pieter Wuille # Date 1350825553 -7200 # Node ID defc5f78275c8452a825acaca1a3e51bf80b81b4 # Parent ce37fbfaa0e0c051209770c3b9fcebb5a78334fc Bugfix: do not mark all future coins spent diff --git a/src/wallet.cpp b/src/wallet.cpp --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -780,8 +780,8 @@ 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++)