diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-09-18 11:32:59 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-09-18 11:32:59 +0200 |
commit | 2c578852253eecf79f97a4f5dcd6e3c41aa7d306 (patch) | |
tree | d39b83fe65e05f807c5a4972f32257c075766e66 | |
parent | Merge pull request #1084 (diff) | |
parent | simplewallet: fix wrong amount in show_transfers for pending transactions (diff) | |
download | monero-2c578852253eecf79f97a4f5dcd6e3c41aa7d306.tar.xz |
Merge pull request #1085
9250863 simplewallet: fix wrong amount in show_transfers for pending transactions (moneromooo-monero)
-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 2c1d4096f..7b0fae4d7 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3305,7 +3305,7 @@ bool simple_wallet::show_transfers(const std::vector<std::string> &args_) for (std::list<std::pair<crypto::hash, tools::wallet2::unconfirmed_transfer_details>>::const_iterator i = upayments.begin(); i != upayments.end(); ++i) { const tools::wallet2::unconfirmed_transfer_details &pd = i->second; uint64_t amount = pd.m_amount_in; - uint64_t fee = amount - pd.m_amount_out; + uint64_t fee = amount - pd.m_amount_out - pd.m_change; std::string payment_id = string_tools::pod_to_hex(i->second.m_payment_id); if (payment_id.substr(16).find_first_not_of('0') == std::string::npos) payment_id = payment_id.substr(0,16); |