From 6c995710d8cdc8dbbb3da2d11dc8dfe335074ec9 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 19 Aug 2015 20:59:44 +0100 Subject: make tx keys available to the user They are also stored in the cache file, to be retrieved using a new get_tx_key command. --- src/wallet/wallet_rpc_server.cpp | 3 +++ 1 file changed, 3 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 7dfd64eef..0682f7743 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -218,6 +218,7 @@ namespace tools // populate response with tx hash res.tx_hash = boost::lexical_cast(cryptonote::get_transaction_hash(ptx_vector.back().tx)); + res.tx_key = boost::lexical_cast(ptx_vector.back().tx_key); return true; } catch (const tools::error::daemon_busy& e) @@ -274,6 +275,7 @@ namespace tools for (auto & ptx : ptx_vector) { res.tx_hash_list.push_back(boost::lexical_cast(cryptonote::get_transaction_hash(ptx.tx))); + res.tx_key_list.push_back(boost::lexical_cast(ptx.tx_key)); } return true; @@ -318,6 +320,7 @@ namespace tools for (auto & ptx : ptx_vector) { res.tx_hash_list.push_back(boost::lexical_cast(cryptonote::get_transaction_hash(ptx.tx))); + res.tx_key_list.push_back(boost::lexical_cast(ptx.tx_key)); } return true; -- cgit v1.2.3