From 58eade689c792374994c3de1d37e8a87c59a8790 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 17 Apr 2019 11:04:44 +0000 Subject: simplewallet: add the change amount to the prompt when locking --- src/simplewallet/simplewallet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 560c5be24..fdff485d6 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -5914,12 +5914,14 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vectorget_transfer_details(i).amount(); total_sent -= ptx_vector[n].change_dts.amount + ptx_vector[n].fee; + change += ptx_vector[n].change_dts.amount; if (ptx_vector[n].dust_added_to_fee) dust_in_fee += ptx_vector[n].dust; @@ -5957,7 +5959,7 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vectorprint_ring_members()) { -- cgit v1.2.3