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

issue jonasschnelli openend 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. laanwj referenced this in commit 79aeed8e76 on Sep 30, 2019
  5. MarcoFalke commented at 8:12 pm on September 30, 2019: member
    This has been fixed in 79aeed8e76e8bc70722e6178678b0b3840694d5c?
  6. MarcoFalke closed this on Sep 30, 2019

  7. sidhujag referenced this in commit 87f572d383 on Oct 2, 2019
  8. jasonbcox referenced this in commit b942902439 on Sep 7, 2020
  9. vijaydasmp referenced this in commit de90806b39 on Oct 29, 2021
  10. vijaydasmp referenced this in commit 109c46514d on Oct 29, 2021
  11. humbleDasher referenced this in commit 3d642e293b on Dec 5, 2021
  12. MarcoFalke 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: 2024-10-06 16:12 UTC

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