From 4eb7347fdd6f8cc52b4318ee4b29375dc139afb4 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 16 Nov 2016 18:56:45 +0000 Subject: wallet: return fee in transfer RPC --- src/wallet/wallet_rpc_server.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/wallet/wallet_rpc_server.cpp') diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 92ad65c5b..f1c3faa3e 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -263,6 +263,7 @@ namespace tools { res.tx_key = epee::string_tools::pod_to_hex(ptx_vector.back().tx_key); } + res.fee = ptx_vector.back().fee; return true; } catch (const tools::error::daemon_busy& e) @@ -325,6 +326,7 @@ namespace tools { res.tx_key_list.push_back(epee::string_tools::pod_to_hex(ptx.tx_key)); } + res.fee_list.push_back(ptx.fee); } return true; @@ -373,6 +375,7 @@ namespace tools { res.tx_key_list.push_back(epee::string_tools::pod_to_hex(ptx.tx_key)); } + res.fee_list.push_back(ptx.fee); } return true; @@ -434,6 +437,7 @@ namespace tools { res.tx_key_list.push_back(epee::string_tools::pod_to_hex(ptx.tx_key)); } + res.fee_list.push_back(ptx.fee); } return true; -- cgit v1.2.3