-
Notifications
You must be signed in to change notification settings - Fork 38.8k
test: Improve STRICTENC/DERSIG unit tests #34295
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
base: master
Are you sure you want to change the base?
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34295. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste LLM Linter (✨ experimental)Possible typos and grammar issues:
2026-01-30 14:34:16 |
darosior
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 63ff7c4
Could you add the context given in OP to the commit messages? It's useful to be able to have the context for a change (especially one that isn't immediate such as this one) when git blaming or searching through the git history, without having to rely on Github.
script_invalid.json no longer exists.
Fix a test that isn't implemented as intended. The idea is to test execution order by providing a signature that would cause script failure when parsed. An empty signature does not cause script failure in CHECKMULTISIG. Use OP_1 for the second signature instead of OP_0.
Copy existing STRICTENC tests and change the flag to DERSIG.
darosior
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reACK 4dfb6ee
Remove a comment referencing a file that no longer exists in the codebase:
script_invalid.json.Fix a test that isn't implemented as intended. The idea is to test execution order by providing a signature that would cause script failure when parsed. An empty signature does not cause script failure in
CHECKMULTISIG. UseOP_1for the second signature instead ofOP_0.Copy existing
STRICTENCtests and change the flag toDERSIG.DERSIGis a consensus flag (unlikeSTRICTENC), so it'd be good to have dedicated test cases.script_testspass on my end.