diff options
author | stoffu <stoffu@protonmail.ch> | 2018-11-02 21:12:11 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-11-02 21:42:02 +0900 |
commit | 1c04c21d6e173dc85a30e33f0aa8fea9f15be3b7 (patch) | |
tree | 280c8ce16d2e23b2a3f293b87f108251b6c90177 /src | |
parent | Merge pull request #4676 (diff) | |
download | monero-1c04c21d6e173dc85a30e33f0aa8fea9f15be3b7.tar.xz |
wallet_rpc_server: include additional tx keys in sign_transfer response
Followup on #4552
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |