importmulti P2WPKH issue #14407

issue jonasschnelli openend this issue on October 5, 2018
  1. jonasschnelli commented at 12:50 pm on October 5, 2018: contributor

    Importing a native P2WPKH script & pubkey via importmulti fails:

    Since the pubkey is required due to issue #14405, I tried to import a native P2WPKH script together with its pubkey. It looks like importmulti assumes legacy P2PKH? But maybe I’m doing something wrong.

    Input…

    • address bcrt1qlqx4gx4qftlfe94n48ttchsptxqwt7je7tddna
    • pubkey 027dbe32bdf80ef2312f8280bd37bf69c31322745af5ebded6294969ff19c20da3
    • scriptPubKey: 0014f80d541aa04afe9c96b3a9d6bc5e015980e5fa59

    Call: importmulti '[{"scriptPubKey": "0014f80d541aa04afe9c96b3a9d6bc5e015980e5fa59", "pubkeys": ["027dbe32bdf80ef2312f8280bd37bf69c31322745af5ebded6294969ff19c20da3"], "timestamp": "now", "watchonly": true}]' '{"rescan": false}'

    Call fails with:

    0[
    1  {
    2    "success": false,
    3    "error": {
    4      "code": -5,
    5      "message": "Consistency check failed"
    6    }
    7  }
    8]
    
  2. jonasschnelli added the label Bug on Oct 5, 2018
  3. jonasschnelli added the label Wallet on Oct 5, 2018
  4. sipa commented at 2:59 pm on October 5, 2018: member
    importmulti was never updated to work with segwit at all I think.
  5. jonasschnelli commented at 8:34 am on October 7, 2018: contributor
    Related (or dupe) #12253
  6. laanwj closed this on Oct 31, 2018

  7. laanwj referenced this in commit b312579c69 on Oct 31, 2018
  8. DrahtBot locked this on Sep 8, 2021
  9. PastaPastaPasta referenced this in commit 5b5bcb5fbd on Sep 18, 2021
  10. UdjinM6 referenced this in commit 908b6e6535 on Sep 28, 2021
  11. kittywhiskers referenced this in commit 5f308252d1 on Oct 12, 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-11-17 09:12 UTC

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