diff options
| author | Jonas Schnelli <[email protected]> | 2016-01-11 11:15:41 +0100 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2016-01-13 08:42:04 -0500 |
| commit | d11fc1695c0453ef22a633e516726f82717dd1d9 (patch) | |
| tree | 56479d5ebf380ad758cc34ab9d1fb6f5469e2e84 /src | |
| parent | Add RPC test for abandoned and conflicted transactions. (diff) | |
| download | discoin-d11fc1695c0453ef22a633e516726f82717dd1d9.tar.xz discoin-d11fc1695c0453ef22a633e516726f82717dd1d9.zip | |
[Wallet] Call notification signal when a transaction is abandoned
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 68e3b2fe5..78371ee30 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -815,6 +815,7 @@ bool CWallet::AbandonTransaction(const uint256& hashTx) wtx.setAbandoned(); wtx.MarkDirty(); 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 TxSpends::const_iterator iter = mapTxSpends.lower_bound(COutPoint(hashTx, 0)); while (iter != mapTxSpends.end() && iter->first.hash == now) { |