User-friendly way to import backupped wallet #8405

issue laanwj opened this issue on July 26, 2016
  1. laanwj commented at 8:43 AM on July 26, 2016: member

    We have a 'backup wallet' option in the menu. However, we don't have a 'restore wallet'.

    There are some difficulties here:

    • Requires a partial rescan (= trouble with pruning)
    • If no keys have been used in the current wallet, it could simply replace the current wallet. However if the current wallet was already used, it is more complicated:
      • It could refuse in this case
      • Move the old wallet out of the way
      • Or try to perform a merge

    This may have be easier with multi-wallet support, where it could copy the backup into the data directory and open it as extra wallet.

    See also #7675.

  2. laanwj added the label Wallet on Jul 26, 2016
  3. jonasschnelli commented at 9:16 AM on July 26, 2016: contributor

    Its getting even more complex if you "restore" a HD wallet. What you need to do is generating an undefined amount of pubkey/addresses (lookup window) and rescan the blockchain (maybe only from block ~430'000 where we have launched 0.13). If one of the last 10 addresses where still be used for receiving funds, you probably should add another 1000 addresses and rescan again.

    Or let the user configure/select how many addresses he wants to restore...

  4. MarcoFalke commented at 2:25 PM on August 6, 2019: member

    @laanwj Is this still an issue, now that we have multiwallet?

  5. laanwj commented at 10:51 AM on August 7, 2019: member

    No, not specifically. I think there's still ways that wallet management can be improved, but I don't think this is an issue worth keeping open.

  6. laanwj closed this on Aug 7, 2019

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

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