diff options
author | xiphon <xiphon@protonmail.com> | 2020-11-14 14:00:36 +0000 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-04-22 04:32:06 +0200 |
commit | 2abd7b174bc663b38c8680418d30ee365daa7de9 (patch) | |
tree | 83cd77f2786665077e4a6e825ed2c2fd8b3cc5ec | |
parent | Extend TransactionInfo with coinbase and description attributes in wallet/api (diff) | |
download | monero-2abd7b174bc663b38c8680418d30ee365daa7de9.tar.xz |
wallet_api: TransactionHistory - fill unconfirmed out payments dests
-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 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); } |