dumpwallet problem #11715

issue khelle opened this issue on November 18, 2017
  1. khelle commented at 10:06 AM on November 18, 2017: none

    I noticed there is a problem with dumpwallet option. It does not seem to dump segwit addresses ("3"), and dumps only the standard one ("1"). Is it a bug or work as intended? How can I perform full dump of an wallet then?

  2. meshcollider commented at 10:25 AM on November 18, 2017: contributor

    Currently dumpwallet only dumps private keys, not scripts. This will be fixed by #11667, which adds scripts to the dumpfile and supports importing them again with the importwallet RPC.

    Note that until then, you still technically have backed up your segwit addresses too, because from the private key you can recreate the P2SH-P2PKH address starting with a '3', it just isn't as easy as using importwallet.

  3. fanquake added the label RPC/REST/ZMQ on Nov 18, 2017
  4. khelle commented at 11:27 AM on November 18, 2017: none

    @MeshCollider ok I understand. If I dumpwallet and receive all my standard addresses, then importwallet on another bitcoin core and write a script that for each "1" address calls "addwitnessaddress" to generate a Segwit one - can I be certain that theses addresses will be the same I used before? Can I workaround migrating seegwit addreses that way?

  5. meshcollider commented at 12:03 PM on November 18, 2017: contributor

    @khelle yes I believe that is currently the case

  6. khelle commented at 2:48 PM on November 18, 2017: none

    @MeshCollider I just tested it and it works. Thank you for your guidance.

  7. khelle closed this on Nov 18, 2017

  8. laanwj referenced this in commit 711d16ca4a on Dec 21, 2017
  9. PastaPastaPasta referenced this in commit 3832d7201d on Mar 23, 2020
  10. PastaPastaPasta referenced this in commit 48829094b5 on Mar 28, 2020
  11. PastaPastaPasta referenced this in commit cea5ee4125 on Mar 29, 2020
  12. PastaPastaPasta referenced this in commit 7b8095c2a9 on Mar 31, 2020
  13. UdjinM6 referenced this in commit e492322f12 on Mar 31, 2020
  14. PastaPastaPasta referenced this in commit 02ab2efe4a on Apr 1, 2020
  15. ckti referenced this in commit 8c8486e21b on Mar 28, 2021
  16. gades referenced this in commit 8dd4f6f99b on Jun 30, 2021
  17. MarcoFalke locked this on Sep 8, 2021
  18. gades referenced this in commit 821c1dc20d on Feb 14, 2022

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-13 15:15 UTC

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