signrawtransactionwithkey gives confusing error when missing redeemScript #16249

issue ajtowns openend this issue on June 20, 2019
  1. ajtowns commented at 11:30 am on June 20, 2019: member

    Forgetting to include the redeemscript when invoking signrawtransactionwithkey used to give a useful error:

    $ bitcoin-cli -regtest signrawtransactionwithkey "02000000018a24833c36be23272080d6be8a53e36586b81e0ac447e1298ee58e18cc96bdee0100000000ffffffff0118246bee0000000017a914e139e3904e9e69ecbce87b0fcfb73b1b0e3b9e818700000000" '["cUJ7bUweEgENv4ixezsSyZa2uBJxR37iFLtCt18gSvkjpkj7CmMr"]'  '[{"txid":"eebd96cc188ee58e29e147c40a1eb88665e3538abed680202723be363c83248a","vout":1,"scriptPubKey":"0020f89f2138a58a2042310f297259ca8050bcaecd3a0f3c936edffb7e38e31d775a","amount":"40.00000000"}]'
    

    With 0.17:

    error code: -3
    error message:
    Missing redeemScript
    

    With master/0.18:

    {
      "hex": "02000000018a24833c36be23272080d6be8a53e36586b81e0ac447e1298ee58e18cc96bdee0100000000ffffffff0118246bee0000000017a914e139e3904e9e69ecbce87b0fcfb73b1b0e3b9e818700000000",
      "complete": false,
      "errors": [
        {
          "txid": "eebd96cc188ee58e29e147c40a1eb88665e3538abed680202723be363c83248a",
          "vout": 1,
          "witness": [
          ],
          "scriptSig": "",
          "sequence": 4294967295,
          "error": "Witness program was passed an empty witness"
        }
      ]
    }
    
  2. fanquake added the label RPC/REST/ZMQ on Jun 22, 2019
  3. MarcoFalke referenced this in commit e06067387e on Jul 2, 2019
  4. MarcoFalke closed this on Jul 2, 2019

  5. sidhujag referenced this in commit 0c8c2ad2de on Jul 3, 2019
  6. fanquake referenced this in commit 1fb747a800 on Jul 7, 2019
  7. MarcoFalke locked this on Dec 16, 2021
  8. knst referenced this in commit 34819eb302 on Feb 2, 2023
  9. knst referenced this in commit 37e8c467c7 on Feb 13, 2023
  10. knst referenced this in commit cd919f4c0f on Feb 28, 2023
  11. knst referenced this in commit 83824fa53f on Mar 14, 2023
  12. knst referenced this in commit e1d4d6ade6 on Mar 15, 2023
  13. knst referenced this in commit 2725c9e6d5 on Mar 19, 2023
  14. knst referenced this in commit 8f778443fc on Mar 24, 2023
  15. knst referenced this in commit 3790876cd3 on Mar 29, 2023
  16. UdjinM6 referenced this in commit 57e3060ec8 on Mar 29, 2023
  17. UdjinM6 referenced this in commit b44eb21591 on Apr 6, 2023


ajtowns

Labels
RPC/REST/ZMQ


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: 2024-11-17 15:12 UTC

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