diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-13 14:13:34 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-13 14:14:15 +0000 |
commit | f962449d465c688df7e88fc642736ab15dd38ac5 (patch) | |
tree | 45c46e3f06436192a56fdb380e2faa01444e359f /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #5258 (diff) | |
download | monero-f962449d465c688df7e88fc642736ab15dd38ac5.tar.xz |
wallet_rpc_server: include out subaddress indices in get_transfers
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 90afa91fd..dc1b1b926 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -319,6 +319,8 @@ namespace tools entry.type = "out"; entry.subaddr_index = { pd.m_subaddr_account, 0 }; + for (uint32_t i: pd.m_subaddr_indices) + entry.subaddr_indices.push_back({pd.m_subaddr_account, i}); entry.address = m_wallet->get_subaddress_as_str({pd.m_subaddr_account, 0}); set_confirmations(entry, m_wallet->get_blockchain_current_height(), m_wallet->get_last_block_reward()); } @@ -339,6 +341,8 @@ namespace tools entry.note = m_wallet->get_tx_note(txid); entry.type = is_failed ? "failed" : "pending"; entry.subaddr_index = { pd.m_subaddr_account, 0 }; + for (uint32_t i: pd.m_subaddr_indices) + entry.subaddr_indices.push_back({pd.m_subaddr_account, i}); entry.address = m_wallet->get_subaddress_as_str({pd.m_subaddr_account, 0}); set_confirmations(entry, m_wallet->get_blockchain_current_height(), m_wallet->get_last_block_reward()); } |