Merge pull request #2899

b60f48f0 return subaddress in get_bulk_payments (Dmitriy Plekhanov)
This commit is contained in:
Riccardo Spagni 2017-12-25 21:15:08 +02:00
commit b3dddb22fe
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 0 deletions

View File

@ -1275,6 +1275,7 @@ namespace tools
{
wallet_rpc::payment_details rpc_payment;
rpc_payment.payment_id = epee::string_tools::pod_to_hex(payment.first);
rpc_payment.subaddress = m_wallet->get_subaddress_as_str(payment.second.m_subaddr_index);
rpc_payment.tx_hash = epee::string_tools::pod_to_hex(payment.second.m_tx_hash);
rpc_payment.amount = payment.second.m_amount;
rpc_payment.block_height = payment.second.m_block_height;