diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2018-12-15 19:52:03 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2023-06-23 02:05:24 +0000 |
commit | f3fbe99fcf90daec79d49fd5d868102dc99feb23 (patch) | |
tree | a84011ce1fd3e7ef37cbd28f70c4e556f27db728 /src/wallet/interfaces.cpp | |
parent | b9765ba1d67d7b74c17f9ce70cad5487715208a0 (diff) | |
download | bitcoin-f3fbe99fcf90daec79d49fd5d868102dc99feb23.tar.xz |
GUI: TransactionRecord: Refactor to turn send-to-self into send+receive pairs
Diffstat (limited to 'src/wallet/interfaces.cpp')
-rw-r--r-- | src/wallet/interfaces.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/interfaces.cpp b/src/wallet/interfaces.cpp index 9083c304b2..c027ff1240 100644 --- a/src/wallet/interfaces.cpp +++ b/src/wallet/interfaces.cpp @@ -64,6 +64,7 @@ WalletTx MakeWalletTx(CWallet& wallet, const CWalletTx& wtx) result.txout_address_is_mine.reserve(wtx.tx->vout.size()); for (const auto& txout : wtx.tx->vout) { result.txout_is_mine.emplace_back(wallet.IsMine(txout)); + result.txout_is_change.push_back(OutputIsChange(wallet, txout)); result.txout_address.emplace_back(); result.txout_address_is_mine.emplace_back(ExtractDestination(txout.scriptPubKey, result.txout_address.back()) ? wallet.IsMine(result.txout_address.back()) : |