wallet_rpc_server: return payment id in make_integrated_address RPC

It is useful, especially when requesting a random one
This commit is contained in:
moneromooo-monero 2016-08-29 12:18:22 +01:00
parent c915bffa51
commit adca903589
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
2 changed files with 3 additions and 0 deletions

View File

@ -473,6 +473,7 @@ namespace tools
}
res.integrated_address = m_wallet.get_account().get_public_integrated_address_str(payment_id, m_wallet.testnet());
res.payment_id = epee::string_tools::pod_to_hex(payment_id);
return true;
}
catch (std::exception &e)

View File

@ -414,9 +414,11 @@ namespace wallet_rpc
struct response
{
std::string integrated_address;
std::string payment_id;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(integrated_address)
KV_SERIALIZE(payment_id)
END_KV_SERIALIZE_MAP()
};
};