diff options
author | Gregory Maxwell <greg@xiph.org> | 2012-10-21 16:20:04 -0700 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2012-10-21 16:20:04 -0700 |
commit | 2ef15697f84208e05764046dd86bcf067029a9b8 (patch) | |
tree | 0da83a2315e6b650468587fe174f72529400f391 /src | |
parent | ef0ae25c2be04340cc34b0f1807cb75ca09fbd32 (diff) | |
parent | ddba582377f1f7200ac15492603678f716e2dc22 (diff) |
Merge pull request #1939 from sipa/bugfix_zerobalance
Bugfix: do not mark all future coins spent
Diffstat (limited to 'src')
-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++) |