Browse Source

Make sure conflicted wallet tx's update balances

0.13
Alex Morcos 9 years ago
parent
commit
f61766b37b
  1. 7
      src/wallet/wallet.cpp

7
src/wallet/wallet.cpp

@ -811,6 +811,13 @@ void CWallet::MarkConflicted(const uint256& hashBlock, const uint256& hashTx) @@ -811,6 +811,13 @@ void CWallet::MarkConflicted(const uint256& hashBlock, const uint256& hashTx)
}
iter++;
}
// If a transaction changes 'conflicted' state, that changes the balance
// available of the outputs it spends. So force those to be recomputed
BOOST_FOREACH(const CTxIn& txin, wtx.vin)
{
if (mapWallet.count(txin.prevout.hash))
mapWallet[txin.prevout.hash].MarkDirty();
}
}
}
}

Loading…
Cancel
Save