Browse Source

Bugfix: do not mark all future coins spent

0.8
Pieter Wuille 12 years ago
parent
commit
ddba582377
  1. 4
      src/wallet.cpp

4
src/wallet.cpp

@ -780,8 +780,8 @@ void CWallet::ReacceptWalletTransactions()
CCoins coins; CCoins coins;
bool fUpdated = false; bool fUpdated = false;
bool fNotFound = pcoinsTip->GetCoins(wtx.GetHash(), coins); bool fFound = pcoinsTip->GetCoins(wtx.GetHash(), coins);
if (!fNotFound || wtx.GetDepthInMainChain() > 0) if (fFound || wtx.GetDepthInMainChain() > 0)
{ {
// Update fSpent if a tx got spent somewhere else by a copy of wallet.dat // 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++) for (unsigned int i = 0; i < wtx.vout.size(); i++)

Loading…
Cancel
Save