Skip to content
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

Fix describe_transfer for multiple txes in a txset #7767

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

selsta
Copy link
Collaborator

@selsta selsta commented Jul 1, 2021

Rebase of #7349

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 #7344

@selsta selsta force-pushed the rebase-7349 branch 2 times, most recently from 5c6c15e to 342fd4f Compare July 1, 2021 17:47
res.summary.amount_in += desc.amount_in;
res.summary.amount_out += desc.amount_out;
res.summary.change_amount += desc.change_amount;
res.summary.fee += desc.fee;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those aren't initialized at the top. It might be they always are in practice, but it seems best to init them at the start of the function.

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
@luigi1111 luigi1111 merged commit 894e5b2 into monero-project:master Aug 2, 2021
@selsta selsta deleted the rebase-7349 branch August 27, 2021 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

describe_transfer has incorrect output when multiple transactions are present
3 participants