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).
This commit is contained in:
moneromooo-monero 2015-08-19 20:59:44 +01:00
parent 32077d3810
commit d91eb8c7b4
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
6 changed files with 36 additions and 11 deletions

View file

@ -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()
};