Skip to content

Fix check outputs#338

Merged
DanGould merged 2 commits intopayjoin:masterfrom
spacebear21:fix-check-outputs
Aug 12, 2024
Merged

Fix check outputs#338
DanGould merged 2 commits intopayjoin:masterfrom
spacebear21:fix-check-outputs

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