Signrawtransaction shouldn't require redeemScript for non-p2sh inputs #2281

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:alt2264 changing 1 files +3 −1
  1. gavinandresen commented at 5:54 PM on February 6, 2013: contributor

    The redeemScript functionality broke plain offline signing, this change makes it only look for that parameter when signing a p2sh input.

    Shorter version of #2264

    Tested by creating two chained, not-broadcast raw transactions, verifying that not providing redeemScript for the second fails without this change, succeeds with this change.

  2. Signrawtransaction shouldn't require redeemScript for non-p2sh inputs
    The redeemScript functionality broke plain offline signing, this
    change makes it only look for that parameter when signing a p2sh
    input.
    
    Shorter version of https://github.com/bitcoin/bitcoin/pull/2264
    a591f10dbf
  3. gmaxwell commented at 5:56 PM on February 6, 2013: contributor

    I don't think that will give you a useful error message when you need one but don't provide it.

  4. gavinandresen commented at 6:02 PM on February 6, 2013: contributor

    Excellent point, gmaxwell. ACK on 2264 over this one.

  5. gavinandresen closed this on Feb 6, 2013

  6. gavinandresen deleted the branch on Feb 6, 2013
  7. DrahtBot 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-18 21:16 UTC

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