aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2012-10-21 16:20:04 -0700
committerGregory Maxwell <[email protected]>2012-10-21 16:20:04 -0700
commit2ef15697f84208e05764046dd86bcf067029a9b8 (patch)
tree0da83a2315e6b650468587fe174f72529400f391 /src/wallet.cpp
parentMerge pull request #1910 from Diapolo/block_chain_typo (diff)
parentBugfix: do not mark all future coins spent (diff)
downloaddiscoin-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.cpp4
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++)