diff options
author | xiphon <xiphon@protonmail.com> | 2020-11-14 14:00:36 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2020-11-14 14:09:07 +0000 |
commit | 2c668940cd425ae4b40ee2f74575536170fa40cc (patch) | |
tree | 6911040381a51b2de27f48d81c334a238bf4e032 /src/wallet/api/transaction_history.cpp | |
parent | Merge pull request #6927 (diff) | |
download | monero-2c668940cd425ae4b40ee2f74575536170fa40cc.tar.xz |
wallet_api: TransactionHistory - fill unconfirmed out payments dests
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/transaction_history.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/api/transaction_history.cpp b/src/wallet/api/transaction_history.cpp index bcb300889..b07c92f20 100644 --- a/src/wallet/api/transaction_history.cpp +++ b/src/wallet/api/transaction_history.cpp @@ -212,6 +212,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); } |