Skip to content

Commit

Permalink
Add comment about using defaultAccountType
Browse files Browse the repository at this point in the history
  • Loading branch information
Christewart committed Jan 21, 2021
1 parent 4bf637a commit 5681690
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/key-manager/server-key-manager.md
Expand Up @@ -82,6 +82,14 @@ To restore from a backed up seed, simply put the seed file in the `seeds` folder
To do this, you will need the seed file name to be `walletName-encrypted-bitcoin-s-seed.json` or `encrypted-bitcoin-s-seed.json`
if you want it to be the default wallet.
To load it, just set the `bitcoin-s.wallet.walletName` config option to the appropriate wallet name.
It is also important to remember to set `bitcoin-s.wallet.defaultAccountType` to the type of wallet you were using on your old wallet.
As of this writing there are 3 types allowed
- legacy
- nested-segwit
- segwit

If you fail to set this setting, your wallet will be looking for the wrong script types and not correctly find your funds
on the blockchain as documented in [this issue](https://github.com/bitcoin-s/bitcoin-s/issues/2527).

When restoring from a backup you should not replace an existing seed file as this can result in a loss of funds.
If you have a seed file that would replace an existing seed its file name should be prefixed with a different wallet name.
Expand Down

0 comments on commit 5681690

Please sign in to comment.