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: size estimation for pegin transactions #1355

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

delta1
Copy link
Member

@delta1 delta1 commented Aug 14, 2024

Fixes the size estimation for pegin transactions, the witness scale factor was only being applied to the pubkey and not the rest of the witness data.

The overestimation is ~56 bytes

>>> (1+1+72+1+33/4)
83.25
>>> (1+1+72+1+33)/4
27.0
>>> 83.25 - 27.0
56.25

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

utACK c1bc7ca

@delta1 delta1 merged commit e40b57d into ElementsProject:master Aug 16, 2024
9 of 13 checks passed
@delta1 delta1 deleted the pegin-estimate branch August 16, 2024 12:46
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.

2 participants