wallet_api: TransactionHistory - fill unconfirmed out payments dests

pull/351/head
xiphon 4 years ago committed by wowario
parent e49f87c8b3
commit b353da51f9
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

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

Loading…
Cancel
Save