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

[Test] BIP62 rule 6 added + script tests updates #2494

Merged
merged 20 commits into from
Sep 15, 2021

Conversation

@furszy furszy self-assigned this Aug 4, 2021
@furszy furszy added this to the 6.0.0 milestone Aug 4, 2021
@furszy furszy changed the title [Test] Script tests updates [WIP][Test] Script tests updates Aug 5, 2021
@furszy furszy force-pushed the 2021_script_tests_updates branch 2 times, most recently from 2f8b6f1 to ab2a4da Compare August 23, 2021 23:48
@furszy furszy changed the title [WIP][Test] Script tests updates [Test] BIP62 rule 6 added + script tests updates Aug 23, 2021
…ove-only commit with the exception of changes to includes.
@furszy furszy modified the milestones: 6.0.0, 5.4.0 Aug 27, 2021
@furszy
Copy link
Author

furszy commented Sep 6, 2021

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.

Copy link

@random-zebra random-zebra left a 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.

src/script/standard.h Outdated Show resolved Hide resolved
furszy and others added 11 commits September 9, 2021 11:02
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.
@furszy
Copy link
Author

furszy commented Sep 9, 2021

Added the ExtractDestinations documentation for P2CS scripts in 395ecb1.

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK a6d09a9

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a6d09a9

@random-zebra random-zebra merged commit 54190c5 into PIVX-Project:master Sep 15, 2021
@furszy furszy deleted the 2021_script_tests_updates branch November 29, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants