From 0b53788c26c3150f07b4c424c028aea4b863ccdc Mon Sep 17 00:00:00 2001 From: Chris Stewart Date: Thu, 21 Jan 2021 14:57:31 -0600 Subject: [PATCH] Add comment about using defaultAccountType (#2549) * Add comment about using defaultAccountType * Fix nit --- docs/key-manager/server-key-manager.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/key-manager/server-key-manager.md b/docs/key-manager/server-key-manager.md index 04b377190e..08bfb57476 100644 --- a/docs/key-manager/server-key-manager.md +++ b/docs/key-manager/server-key-manager.md @@ -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 could 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.