aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-11-14 14:00:36 +0000
committerselsta <selsta@sent.at>2021-04-22 04:32:06 +0200
commit2abd7b174bc663b38c8680418d30ee365daa7de9 (patch)
tree83cd77f2786665077e4a6e825ed2c2fd8b3cc5ec /src/wallet
parentExtend TransactionInfo with coinbase and description attributes in wallet/api (diff)
downloadmonero-2abd7b174bc663b38c8680418d30ee365daa7de9.tar.xz
wallet_api: TransactionHistory - fill unconfirmed out payments dests
Diffstat (limited to 'src/wallet')
-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 1a9661465..3743f74ad 100644
--- a/src/wallet/api/transaction_history.cpp
+++ b/src/wallet/api/transaction_history.cpp
@@ -217,6 +217,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);
}