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 GitHub
parent 3bd6ed94d7
commit bdabcd01b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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;