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: generate a well-formed Bitcoin transaction when spending multiple UTXOs #5098

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

jcnelson
Copy link
Member

See title. The partially-signed bitcoin transaction wasn't properly structured, which caused block-commits which consume multiple UTXOs to fail due to invalid signatures. This fixes this problem and adds test coverage.

@jcnelson jcnelson requested a review from a team as a code owner August 21, 2024 03:34
…, the partially-signed transaction needs to have all of the inputs present before we can begin signing them (since the sighash commits to the number of inputs). Fix this and add a unit test.
@saralab saralab requested review from obycode and hstove August 21, 2024 05:19
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

lgtm!

@jcnelson jcnelson requested a review from jferrant August 21, 2024 14:05
Copy link
Collaborator

@jferrant jferrant left a comment

Choose a reason for hiding this comment

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

Good catch.

Copy link
Contributor

@hstove hstove left a comment

Choose a reason for hiding this comment

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

Great catch!

@jferrant jferrant added this pull request to the merge queue Aug 22, 2024
Merged via the queue into develop with commit 9bfb217 Aug 22, 2024
1 check passed
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Oct 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants