-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7344 Fix describe_transfer in the case of multiple transactions in the set #7349
7344 Fix describe_transfer in the case of multiple transactions in the set #7349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dests renaming is a bit spammy but small enough I guess.
} | ||
|
||
if (desc.change_amount > 0) | ||
{ | ||
const tools::wallet2::tx_construction_data &cd0 = tx_constructions[0]; | ||
desc.change_address = get_account_address_as_str(m_wallet->nettype(), cd0.subaddr_account > 0, cd0.change_dts.addr); | ||
res.summary.change_address = desc.change_address; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That address, if any, could be different for all txes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that were the case an error would be triggered on line 1278, so it is safe to assume all change goes to one address here.
@moneromooo-monero I renamed |
Can you bump WALLET_RPC_VERSION_MINOR ? |
Thanks, please squash your commits and then we can add this to the merge list. |
This ensures each list of recipients is only the recipients for one transaction. It also adds a new field "summary" that describes the txset as a whole. Fixes monero-project#7344
e505449
to
bf751f4
Compare
@lxop could you please rebase? src/wallet/wallet_rpc_server.cpp conflicts due to a recent merge |
ping @lxop, I would appreciate it if you could rebase so that we can merge this. |
describe_transfer
that includes the total amounts and the aggregated set of recipients.Fixes #7344