-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: Validate coinbase outputs #158
feat: Validate coinbase outputs #158
Conversation
manlikeHB
commented
Sep 8, 2024
- issue [feat] Validate coinbase outputs #140
- follows contribution guide
- code change includes tests
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@manlikeHB the task also includes calculating the wtxid commitment. Add unit tests to ensure that txid commitment is calculated correctly |
@m-kus, Is there a way I can get minimal/test blocks with segwit transactions to test the correctness of the wtxid commitment being calculated? |
There is now full_757738 test which applies a block with segwit transactions in main, you just need to rebase. |
- return error if no wtxid commitment - add test
- refac: rename MINIMUM_WITNESS_COMMITMENT to WTNS_PK_SCRIPT_LEN
Hi, it is difficult to debug indeed. I pushed a fix to print test output. You should be able to debug it now. Don't hesitate to ask for help if you feel blocked next time! |
- fix tests - clean up
- refac: represent witness reserved value in string literal
f7e9feb
to
9b5cf2f
Compare