Merge pull request #7020

2c66894 wallet_api: TransactionHistory - fill unconfirmed out payments dests (xiphon)
This commit is contained in:
luigi1111 2020-11-29 01:58:56 -06:00
commit cf816e51ad
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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);
}