Mercurial > hg > bitcoin
changeset 3666:defc5f78275c draft
Bugfix: do not mark all future coins spent
author | Pieter Wuille <pieter.wuille@gmail.com> |
---|---|
date | Sun, 21 Oct 2012 15:19:13 +0200 |
parents | ce37fbfaa0e0 |
children | c22baddfb828 |
files | src/wallet.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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++)