diff options
author | Jakob Lind <karl.jakob.lind@gmail.com> | 2014-08-05 08:57:08 +0200 |
---|---|---|
committer | Jakob Lind <karl.jakob.lind@gmail.com> | 2014-08-05 08:57:08 +0200 |
commit | 67b91ea7699501fc3acab57c6e138792628c032e (patch) | |
tree | 0a859060427ffd9881385d7e27eff0547507ffb0 /src/wallet/wallet_rpc_server.cpp | |
parent | added viewkey command to CLI (diff) | |
download | monero-67b91ea7699501fc3acab57c6e138792628c032e.tar.xz |
added view_key to wallet RPC command query_key
Diffstat (limited to '')
-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 26da8d434..fa0a5445e 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -413,6 +413,10 @@ namespace tools return false; } } + else if(req.key_type.compare("view_key") == 0) + { + res.key = string_tools::pod_to_hex(m_wallet.get_account().get_keys().m_view_secret_key); + } else { er.message = "key_type " + req.key_type + " not found"; |