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?
-
khelle commented at 10:06 AM on November 18, 2017: none
-
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.
- fanquake added the label RPC/REST/ZMQ on Nov 18, 2017
-
khelle commented at 11:27 AM on November 18, 2017: none
@MeshCollider ok I understand. If I
dumpwalletand receive all my standard addresses, thenimportwalleton 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? -
meshcollider commented at 12:03 PM on November 18, 2017: contributor
@khelle yes I believe that is currently the case
-
khelle commented at 2:48 PM on November 18, 2017: none
@MeshCollider I just tested it and it works. Thank you for your guidance.
- khelle closed this on Nov 18, 2017
- laanwj referenced this in commit 711d16ca4a on Dec 21, 2017
- PastaPastaPasta referenced this in commit 3832d7201d on Mar 23, 2020
- PastaPastaPasta referenced this in commit 48829094b5 on Mar 28, 2020
- PastaPastaPasta referenced this in commit cea5ee4125 on Mar 29, 2020
- PastaPastaPasta referenced this in commit 7b8095c2a9 on Mar 31, 2020
- UdjinM6 referenced this in commit e492322f12 on Mar 31, 2020
- PastaPastaPasta referenced this in commit 02ab2efe4a on Apr 1, 2020
- ckti referenced this in commit 8c8486e21b on Mar 28, 2021
- gades referenced this in commit 8dd4f6f99b on Jun 30, 2021
- MarcoFalke locked this on Sep 8, 2021
- gades referenced this in commit 821c1dc20d on Feb 14, 2022