diff options
author | Tadeas Moravec <moravec.tadeas@gmail.com> | 2020-01-09 10:01:56 +0100 |
---|---|---|
committer | Tadeas Moravec <tadeas@moravec.xyz> | 2020-01-11 11:48:27 +0100 |
commit | 096a9dbdf958d23f74d132247143b8b8d3cb6dcd (patch) | |
tree | 7d285dcc389ee70c070f29f1c1e4111989abca8b /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #6253 (diff) | |
download | monero-096a9dbdf958d23f74d132247143b8b8d3cb6dcd.tar.xz |
Wallet: Distingush amounts for a single subaddress
Adding a new `amounts` field ot the output of `get_transfers` RPC
method. This field specifies individual payments made to a single
subaddress in a single transaction, e.g., made by this command:
transfer <addr1> <amount1> <addr1> <amount2>
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index de501f056..ae81e211e 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -326,6 +326,7 @@ namespace tools entry.height = pd.m_block_height; entry.timestamp = pd.m_timestamp; entry.amount = pd.m_amount; + entry.amounts = pd.m_amounts; entry.unlock_time = pd.m_unlock_time; entry.locked = !m_wallet->is_transfer_unlocked(pd.m_unlock_time, pd.m_block_height); entry.fee = pd.m_fee; @@ -408,6 +409,7 @@ namespace tools entry.height = 0; entry.timestamp = pd.m_timestamp; entry.amount = pd.m_amount; + entry.amounts = pd.m_amounts; entry.unlock_time = pd.m_unlock_time; entry.locked = true; entry.fee = pd.m_fee; |