wallet_api: store fee for incoming txs in history

This commit is contained in:
Ben Evanoff 2021-01-02 13:56:57 -06:00 committed by selsta
parent 712f362150
commit 73959c623c
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -139,6 +139,7 @@ void TransactionHistoryImpl::refresh()
ti->m_paymentid = payment_id; ti->m_paymentid = payment_id;
ti->m_coinbase = pd.m_coinbase; ti->m_coinbase = pd.m_coinbase;
ti->m_amount = pd.m_amount; ti->m_amount = pd.m_amount;
ti->m_fee = pd.m_fee;
ti->m_direction = TransactionInfo::Direction_In; ti->m_direction = TransactionInfo::Direction_In;
ti->m_hash = string_tools::pod_to_hex(pd.m_tx_hash); ti->m_hash = string_tools::pod_to_hex(pd.m_tx_hash);
ti->m_blockheight = pd.m_block_height; ti->m_blockheight = pd.m_block_height;