diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-15 13:56:09 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-15 13:56:09 +0100 |
commit | b5f20012d3bcd031fd9862c2923859e2fb5bfb58 (patch) | |
tree | d2daa457cfde9aef43e0dfbe3c654db5b2cc57d8 | |
parent | Merge pull request #1203 (diff) | |
download | monero-b5f20012d3bcd031fd9862c2923859e2fb5bfb58.tar.xz |
simplewallet: fix wrong amount in show_transfers
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index b27113473..8a06a74f9 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3831,8 +3831,8 @@ bool simple_wallet::show_transfers(const std::vector<std::string> &args_) m_wallet->get_payments_out(payments, min_height, max_height); for (std::list<std::pair<crypto::hash, tools::wallet2::confirmed_transfer_details>>::const_iterator i = payments.begin(); i != payments.end(); ++i) { 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 dests; for (const auto &d: pd.m_dests) { if (!dests.empty()) |