diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-15 13:56:25 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-15 13:56:25 +0100 |
commit | 2d7083ca5652b2c85d23e19988ea1bcc5aa4c7d2 (patch) | |
tree | b11ac999e6e5ee4386a850448314926294adc5e8 /src/wallet/api/transaction_history.cpp | |
parent | simplewallet: fix wrong amount in show_transfers (diff) | |
download | monero-2d7083ca5652b2c85d23e19988ea1bcc5aa4c7d2.tar.xz |
wallet_api: fix wrong amount in tx history
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/transaction_history.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/api/transaction_history.cpp b/src/wallet/api/transaction_history.cpp index e4a003b02..2ba5f3620 100644 --- a/src/wallet/api/transaction_history.cpp +++ b/src/wallet/api/transaction_history.cpp @@ -156,8 +156,8 @@ void TransactionHistoryImpl::refresh() const crypto::hash &hash = i->first; const tools::wallet2::confirmed_transfer_details &pd = i->second; - uint64_t fee = pd.m_amount_in - pd.m_amount_out; uint64_t change = pd.m_change == (uint64_t)-1 ? 0 : pd.m_change; // change may not be known + uint64_t fee = pd.m_amount_in - pd.m_amount_out - change; std::string payment_id = string_tools::pod_to_hex(i->second.m_payment_id); |