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

Move txin base weight calculation #26

Closed
wants to merge 1 commit into from

Conversation

yancyribbens
Copy link
Collaborator

Marking this as draft for now until PR rust-bitcoin/rust-bitcoin#2206 is reviewed. If it's brought into master I'll move this PR out of draft state.

The base weight calculation was previously provided by rust-bitcoin but has since been removed. Furthermore, the removed base weight calculation had a logic error where it should have been multiplied by 4. This PR provides a local base weight calculation and uses from_vb which multiplies by 4 since the components of the base weight are not part of segwit.

The base weight calculation was previously provided by rust-bitcoin but
has since been removed.  Furthermore, the removed base weight
calculation had a logic error where it should have been multiplied by 4.
This PR provides a local base weight calculation and uses from_vb which
multiplies by 4 since the components of the base weight are not part of
segwit.
@yancyribbens yancyribbens force-pushed the bug/base-weight-calculation-error branch from 5c5d69a to 286ad04 Compare November 21, 2023 12:50
@yancyribbens
Copy link
Collaborator Author

closing in favor of #27

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.

1 participant