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

decodeOpReturn() reports invalid TX as valid #182

Open
christroutner opened this issue Apr 30, 2020 · 1 comment
Open

decodeOpReturn() reports invalid TX as valid #182

christroutner opened this issue Apr 30, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@christroutner
Copy link

User @linkinpark9812 reports that bchjs.SLP.Utils.decodeOpReturn() reports an invalid transaction as valid:

Valid SLP send: https://explorer.bitcoin.com/bch/tx/a31c3167686f892d835727bc46b74bb11a46d74a8a6b08dc6cd82abb6e987b43

Invalid SLP send: https://explorer.bitcoin.com/bch/tx/a60a522cc11ad7011b74e57fbabbd99296e4b9346bcb175dcf84efb737030415

decodeOpReturn() reports the invalid SLP transaction as valid.

@christroutner christroutner added the bug Something isn't working label Apr 30, 2020
@christroutner
Copy link
Author

I need to fix this same bug in bch-js. I'll try to submit a PR to fix this when I fix it there.

My plan of attack is to replace the built-in OP_RETURN parsing with the slp-parse npm library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant