From 1c04c21d6e173dc85a30e33f0aa8fea9f15be3b7 Mon Sep 17 00:00:00 2001 From: stoffu Date: Fri, 2 Nov 2018 21:12:11 +0900 Subject: wallet_rpc_server: include additional tx keys in sign_transfer response Followup on #4552 --- 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 5e6100dfd..ac0712d7f 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -982,7 +982,11 @@ namespace tools { res.tx_hash_list.push_back(epee::string_tools::pod_to_hex(cryptonote::get_transaction_hash(ptx.tx))); if (req.get_tx_keys) + { res.tx_key_list.push_back(epee::string_tools::pod_to_hex(ptx.tx_key)); + for (const crypto::secret_key& additional_tx_key : ptx.additional_tx_keys) + res.tx_key_list.back() += epee::string_tools::pod_to_hex(additional_tx_key); + } } if (req.export_raw) -- cgit v1.2.3