Add comment about using defaultAccountType (#2549)

* Add comment about using defaultAccountType

* Fix nit
This commit is contained in:
Chris Stewart 2021-01-21 14:57:31 -06:00 committed by GitHub
parent fc48964721
commit 0b53788c26

View File

@ -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.