Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Jan 19, 2022

The limit was introduced in 906be7e and bumped to 85 bytes in 11aa04e. Switching from P2WKH to P2PKH is how we dashify things usually, so everything looked ok. But the reason P2PWKH was picked in the original PR was that it was the smallest possible one. With this in mind we should really be switching from P2WKH to P2SH here since it's 2 bytes smaller than P2PKH.

This bug is the reason why p2p_invalid_tx.py fails in #4612 atm.

P2SH output is 2 bytes smaller than P2PKH
@UdjinM6 UdjinM6 added this to the 18 milestone Jan 19, 2022
Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK for squash merge

@UdjinM6 UdjinM6 merged commit 8087038 into dashpay:develop Jan 20, 2022
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Apr 19, 2022
P2SH output is 2 bytes smaller than P2PKH
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