fundrawtransaction fails with P2SH(P2WPKH) or P2WPKH watchonly inputs #14405

issue jonasschnelli opened this issue on October 5, 2018
  1. jonasschnelli commented at 10:15 AM on October 5, 2018: contributor

    AFAIK P2WPKH does only support compressed keys and should therefor be solvable without knowing the pubkey.

    Steps to reproduce

    • pay something with a loaded wallet to bcrt1qlqx4gx4qftlfe94n48ttchsptxqwt7je7tddna
    • createwallet test true
    • importmulti '[{"scriptPubKey": "0014f80d541aa04afe9c96b3a9d6bc5e015980e5fa59", "timestamp": "now", "watchonly": true}]' '{"rescan": true}' (0014f80d541aa04afe9c96b3a9d6bc5e015980e5fa59 is the scriptPubKey of bcrt1qlqx4gx4qftlfe94n48ttchsptxqwt7je7tddna)
    • fundrawtransaction 020000000001c09ee6050000000017a91446d96e0da5bcac1802f33d255c8e67dba29364bd8700000000 '{"includeWatching": true, "changeAddress": "mhb6ZbSC5gtjfgxMQEARF1fG1RdS2woNWu"}' fails
  2. jonasschnelli added the label Bug on Oct 5, 2018
  3. jonasschnelli added the label Wallet on Oct 5, 2018
  4. jonasschnelli cross-referenced this on Oct 5, 2018 from issue importmulti P2WPKH issue by jonasschnelli
  5. stevenroose cross-referenced this on Jul 16, 2019 from issue fundrawtransaction returns "Insufficient funds" while it has funds in listunspent by stevenroose
  6. stevenroose cross-referenced this on Jul 16, 2019 from issue doc: Clarify includeWatching for fundrawtransaction by stevenroose
  7. laanwj referenced this in commit 79aeed8e76 on Sep 30, 2019
  8. MarcoFalke commented at 8:12 PM on September 30, 2019: member

    This has been fixed in 79aeed8e76e8bc70722e6178678b0b3840694d5c?

  9. MarcoFalke closed this on Sep 30, 2019

  10. sidhujag referenced this in commit 87f572d383 on Oct 2, 2019
  11. jasonbcox referenced this in commit b942902439 on Sep 7, 2020
  12. vijaydasmp referenced this in commit de90806b39 on Oct 29, 2021
  13. vijaydasmp referenced this in commit 109c46514d on Oct 29, 2021
  14. humbleDasher referenced this in commit 3d642e293b on Dec 5, 2021
  15. bitcoin locked this on Dec 16, 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-05-20 06:54 UTC