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

Add P2SH support for tagging addresses #1196

Closed
wants to merge 1 commit into from

Conversation

blondfrogs
Copy link
Contributor

  • This fixes the issue which was shared with me from @jeroz1.

This was the bug If you try to tag a P2SH address with a Qualifier, the tag lands instead on the P2PKH address whose HASH160 is the same as the hash of the redeem script of the intended P2SH address. In English: you can't tag P2SH addresses because the tag goes to a different address.

This fix was written and tested via regtest. If this was to go live without the proper bip9 activation the chain could suffer a fork. Would probably be a good idea to wrap these changes with the P2SH bip9 if it hasn't gone to mainnet yet.

Feel free to cherry-pick this commit, add the proper bip9 activation code before releasing to testnet / mainnet.

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.

None yet

1 participant