-
Notifications
You must be signed in to change notification settings - Fork 714
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
[Test] BIP62 rule 6 added + script tests updates #2494
[Test] BIP62 rule 6 added + script tests updates #2494
Conversation
2f8b6f1
to
ab2a4da
Compare
…ove-only commit with the exception of changes to includes.
4f63c65
to
ec79dcd
Compare
Ended up adding btc#7387 and a zc txs standardness policy cleanup as well. More changes over the area will come in a follow-up PR, it is a long rabbit hole. |
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.
Just a nit for the documentation of ExtractDestinations
. Otherwise ACK.
Backported from upstream.
NegateSignatureS is called with a signature without a hashtype, so do not save the last byte and append it after S negation. Updates the two tests which were affected by this bug.
The fix to NegateSignatureS caused a test which had been failing in IsValidSignatureEncoding to then fail in IsLowDERSignature. Add new test so the original check remains exercised.
Based on an earlier patch by Peter Todd, though the rules here are different (P2SH scripts should not have a CLEANSTACK check before the P2SH evaluation).
Coming from btc@da918ac06e0d064e9584959ab3d241d03500e972
The 3rd argument of EvalScript() is the unsigned int flags, not a bool. Coming from btc@de236f57c68c2c29d148a2df9e019f431cee3cb7
Backports mostly btc@7517
They claimed to be testing P2SH scripts with non-push scriptSigs, but 1) they were not enabling P2SH 2) they have push-only scriptSigs Fix this, and add a few more related cases.
Fixing formatting Adding test case into automatically generated test case set Clean up commits removing extra whitespace from eol Removing extra whitespace on macro line
c025890
to
a6d09a9
Compare
Added the |
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.
utACK a6d09a9
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 a6d09a9
We are way too behind in terms of the script unit tests, this PR pushes us further into upstream's direction.
Back ported PRs: