aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-11-29 01:58:56 -0600
committerluigi1111 <luigi1111w@gmail.com>2020-11-29 01:58:56 -0600
commitcf816e51ad0137f02d5c6e1b629c0104535a81f9 (patch)
treec0ec6b74c817c43525761c3d6f92684ee9e78481 /src
parentMerge pull request #7018 (diff)
parentwallet_api: TransactionHistory - fill unconfirmed out payments dests (diff)
downloadmonero-cf816e51ad0137f02d5c6e1b629c0104535a81f9.tar.xz
Merge pull request #7020
2c66894 wallet_api: TransactionHistory - fill unconfirmed out payments dests (xiphon)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/api/transaction_history.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/api/transaction_history.cpp b/src/wallet/api/transaction_history.cpp
index 3a8532db8..b6d52c58d 100644
--- a/src/wallet/api/transaction_history.cpp
+++ b/src/wallet/api/transaction_history.cpp
@@ -228,6 +228,10 @@ void TransactionHistoryImpl::refresh()
ti->m_label = pd.m_subaddr_indices.size() == 1 ? m_wallet->m_wallet->get_subaddress_label({pd.m_subaddr_account, *pd.m_subaddr_indices.begin()}) : "";
ti->m_timestamp = pd.m_timestamp;
ti->m_confirmations = 0;
+ for (const auto &d : pd.m_dests)
+ {
+ ti->m_transfers.push_back({d.amount, d.address(m_wallet->m_wallet->nettype(), pd.m_payment_id)});
+ }
m_history.push_back(ti);
}