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 check outputs #338

Merged
merged 2 commits into from
Aug 12, 2024
Merged

Fix check outputs #338

merged 2 commits into from
Aug 12, 2024

Conversation

spacebear21
Copy link
Collaborator

check_outputs was incorrectly iterating over the proposal outputs, effectively skipping all output checks.

The first commit fixes that and ensures the offical test vectors pass.

The second commit adds a test that attempts to steal sender change and is expected to panic. This test fails on master.

`check_outputs` was incorrectly iterating over the proposal outputs,
effectively skipping all output checks. This commit fixes that and
ensures the offical test vectors pass.
This adds a test that attempts to steal change from the sender output
and add that amount to the receiver output, and is expected to panic.
@spacebear21 spacebear21 requested a review from DanGould August 12, 2024 16:15
Copy link
Contributor

@DanGould DanGould left a comment

Choose a reason for hiding this comment

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

excellent catch

@DanGould DanGould merged commit a01c6a8 into payjoin:master Aug 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants