Skip to content

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
@delta1 delta1 deleted the pegin-estimate branch August 16, 2024 12:46
jamesdorfman added a commit to jamesdorfman/elements that referenced this pull request Oct 15, 2024
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