Skip to content

Commit d11fc16

Browse files
jonasschnellimorcos
authored andcommitted
[Wallet] Call notification signal when a transaction is abandoned
1 parent df0e222 commit d11fc16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ bool CWallet::AbandonTransaction(const uint256& hashTx)
815815
wtx.setAbandoned();
816816
wtx.MarkDirty();
817817
wtx.WriteToDisk(&walletdb);
818+
NotifyTransactionChanged(this, wtx.GetHash(), CT_UPDATED);
818819
// Iterate over all its outputs, and mark transactions in the wallet that spend them abandoned too
819820
TxSpends::const_iterator iter = mapTxSpends.lower_bound(COutPoint(hashTx, 0));
820821
while (iter != mapTxSpends.end() && iter->first.hash == now) {

0 commit comments

Comments
 (0)