|
|
@ -815,6 +815,7 @@ bool CWallet::AbandonTransaction(const uint256& hashTx) |
|
|
|
wtx.setAbandoned(); |
|
|
|
wtx.setAbandoned(); |
|
|
|
wtx.MarkDirty(); |
|
|
|
wtx.MarkDirty(); |
|
|
|
wtx.WriteToDisk(&walletdb); |
|
|
|
wtx.WriteToDisk(&walletdb); |
|
|
|
|
|
|
|
NotifyTransactionChanged(this, wtx.GetHash(), CT_UPDATED); |
|
|
|
// Iterate over all its outputs, and mark transactions in the wallet that spend them abandoned too
|
|
|
|
// Iterate over all its outputs, and mark transactions in the wallet that spend them abandoned too
|
|
|
|
TxSpends::const_iterator iter = mapTxSpends.lower_bound(COutPoint(hashTx, 0)); |
|
|
|
TxSpends::const_iterator iter = mapTxSpends.lower_bound(COutPoint(hashTx, 0)); |
|
|
|
while (iter != mapTxSpends.end() && iter->first.hash == now) { |
|
|
|
while (iter != mapTxSpends.end() && iter->first.hash == now) { |
|
|
|