Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Jul 7, 2015

Fixes wrong scriptPubkey problem in #6389, causing the transaction to not actually be signed.

Also change bitcoin-tx so that in MutateTxSign if SignSignature fails, signing is marked as incomplete. This makes sure that errors in e.g. scriptPubKeys are detected.

@laanwj laanwj added the Tests label Jul 7, 2015
Fixes wrong scriptPubkey problem, which caused the transaction to
not actually be signed.
@laanwj laanwj force-pushed the 2015_07_fix_bitcointx_test branch from 3447548 to b7e2a60 Compare July 7, 2015 16:27
@jgarzik
Copy link
Contributor

jgarzik commented Jul 7, 2015

ACK, with comments:

  • bitcoin-tx notably does nothing with fComplete.
  • a "exit(1) if not completely signed" command line switch would enable tests to notice this sort of failure

@laanwj
Copy link
Member Author

laanwj commented Jul 7, 2015

Yes, thinking of it, the change to bitcoin-tx is redundant, even if fComplete was somehow reported.

The VerifyScript later in the iteration will already set fComplete to false if the signing was not successful.

Will remove it.

@laanwj laanwj force-pushed the 2015_07_fix_bitcointx_test branch from b7e2a60 to 133601f Compare July 8, 2015 09:31
@laanwj laanwj merged commit 133601f into bitcoin:master Jul 8, 2015
laanwj added a commit that referenced this pull request Jul 8, 2015
133601f tests: Fix bitcoin-tx signing testcase (Wladimir J. van der Laan)
zkbot added a commit to zcash/zcash that referenced this pull request Feb 15, 2017
zkbot added a commit to zcash/zcash that referenced this pull request Feb 20, 2017
zkbot added a commit to zcash/zcash that referenced this pull request Mar 3, 2017
Bitcoin 0.12 test PRs 1

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#6337
- bitcoin/bitcoin#6390
- bitcoin/bitcoin#5515
- bitcoin/bitcoin#6287 (partial, remainder included in bitcoin/bitcoin#6703)
- bitcoin/bitcoin#6465

Part of #2074.
@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.

3 participants