Skip to content

Conversation

@jl2012
Copy link
Contributor

@jl2012 jl2012 commented Oct 15, 2016

This adds FindAndDelete tests for pre-segwit and segwit scripts, to show that FindAndDelete is performed only in pre-segwit scripts. The transaction is generated in an unconventional way: the public key is generated with key recovery, using a fixed signature (committed in prevout) and a known sighash.

Also edited the comments in interpreter.cpp since the rationale of dropping the signature was wrong.

No harm to backport but I don't feel this is needed. This is more important for alt-implementations to make sure they won't fork accidentally by incorrectly implementing BIP143.

@fanquake fanquake added the Tests label Oct 15, 2016
@jonasschnelli
Copy link
Contributor

utACK acf853d

@laanwj
Copy link
Member

laanwj commented Oct 19, 2016

Looks good to me, utACK acf853d

@laanwj laanwj merged commit acf853d into bitcoin:master Oct 19, 2016
laanwj added a commit that referenced this pull request Oct 19, 2016
…wit scripts

acf853d Add script tests for FindAndDelete in pre-segwit and segwit scripts (Johnson Lau)
@NicolasDorier
Copy link
Contributor

tACK with NBitcoin, thanks, this is tricky test to create

luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Dec 2, 2016
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants