diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-08-19 20:59:44 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-08-24 17:36:44 +0100 |
commit | d91eb8c7b43fc73b9333de800500f217e370cc4b (patch) | |
tree | 01efcc9a510c0878daaff8f32b01b47e1a3e5acb /src/wallet/wallet_rpc_server_commands_defs.h | |
parent | Merge pull request #385 (diff) | |
download | monero-d91eb8c7b43fc73b9333de800500f217e370cc4b.tar.xz |
wallet: only return tx keys via RPC if requested
To get the tx keys returned via RPC, set the "get_tx_key" or
"get_tx_keys" request field to true (defaults to false).
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r-- | src/wallet/wallet_rpc_server_commands_defs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h index ed62f0cfe..64306a7c7 100644 --- a/src/wallet/wallet_rpc_server_commands_defs.h +++ b/src/wallet/wallet_rpc_server_commands_defs.h @@ -97,6 +97,7 @@ namespace wallet_rpc uint64_t mixin; uint64_t unlock_time; std::string payment_id; + bool get_tx_key; BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(destinations) @@ -104,6 +105,7 @@ namespace wallet_rpc KV_SERIALIZE(mixin) KV_SERIALIZE(unlock_time) KV_SERIALIZE(payment_id) + KV_SERIALIZE(get_tx_key) END_KV_SERIALIZE_MAP() }; @@ -129,6 +131,7 @@ namespace wallet_rpc uint64_t unlock_time; std::string payment_id; bool new_algorithm; + bool get_tx_keys; BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(destinations) @@ -137,6 +140,7 @@ namespace wallet_rpc KV_SERIALIZE(unlock_time) KV_SERIALIZE(payment_id) KV_SERIALIZE(new_algorithm) + KV_SERIALIZE(get_tx_keys) END_KV_SERIALIZE_MAP() }; @@ -156,7 +160,10 @@ namespace wallet_rpc { struct request { + bool get_tx_keys; + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(get_tx_keys) END_KV_SERIALIZE_MAP() }; |