mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 20:32:19 -04:00
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>
This commit is contained in:
parent
3c01bffd0c
commit
096a9dbdf9
4 changed files with 38 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue