tests: Fix bitcoin-tx signing test case #6390

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2015_07_fix_bitcointx_test changing 2 files +2 −2
  1. laanwj commented at 4:26 PM on July 7, 2015: member

    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.

  2. laanwj added the label Tests on Jul 7, 2015
  3. tests: Fix bitcoin-tx signing testcase
    Fixes wrong scriptPubkey problem, which caused the transaction to
    not actually be signed.
    133601f6a5
  4. laanwj force-pushed on Jul 7, 2015
  5. jgarzik commented at 4:32 PM on July 7, 2015: contributor

    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
  6. laanwj commented at 6:00 PM on July 7, 2015: member

    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.

  7. laanwj force-pushed on Jul 8, 2015
  8. laanwj merged this on Jul 8, 2015
  9. laanwj closed this on Jul 8, 2015

  10. laanwj referenced this in commit 6a73d66883 on Jul 8, 2015
  11. zkbot referenced this in commit 57d420e2f8 on Feb 15, 2017
  12. zkbot referenced this in commit 88c209dba6 on Feb 20, 2017
  13. zkbot referenced this in commit dadb1ab74c on Mar 3, 2017
  14. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me