diff options
| author | Gregory Maxwell <[email protected]> | 2012-10-21 16:20:04 -0700 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2012-10-21 16:20:04 -0700 |
| commit | 2ef15697f84208e05764046dd86bcf067029a9b8 (patch) | |
| tree | 0da83a2315e6b650468587fe174f72529400f391 /src/wallet.cpp | |
| parent | Merge pull request #1910 from Diapolo/block_chain_typo (diff) | |
| parent | Bugfix: do not mark all future coins spent (diff) | |
| download | discoin-2ef15697f84208e05764046dd86bcf067029a9b8.tar.xz discoin-2ef15697f84208e05764046dd86bcf067029a9b8.zip | |
Merge pull request #1939 from sipa/bugfix_zerobalance
Bugfix: do not mark all future coins spent
Diffstat (limited to 'src/wallet.cpp')
| -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 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++) |