wallet_rpc_server: include account index in incoming_transfers RPC

This commit is contained in:
moneromooo-monero 2018-09-20 13:03:21 +00:00
parent bad2c7cf31
commit b35beaa8d6
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
2 changed files with 2 additions and 2 deletions

View File

@ -1539,7 +1539,7 @@ namespace tools
rpc_transfers.spent = td.m_spent;
rpc_transfers.global_index = td.m_global_output_index;
rpc_transfers.tx_hash = epee::string_tools::pod_to_hex(td.m_txid);
rpc_transfers.subaddr_index = td.m_subaddr_index.minor;
rpc_transfers.subaddr_index = {td.m_subaddr_index.major, td.m_subaddr_index.minor};
rpc_transfers.key_image = req.verbose && td.m_key_image_known ? epee::string_tools::pod_to_hex(td.m_key_image) : "";
res.transfers.push_back(rpc_transfers);
}

View File

@ -859,7 +859,7 @@ namespace wallet_rpc
bool spent;
uint64_t global_index;
std::string tx_hash;
uint32_t subaddr_index;
cryptonote::subaddress_index subaddr_index;
std::string key_image;
BEGIN_KV_SERIALIZE_MAP()