bugfix: When creating a new BSQ wallet, use the BTC wallet seed

This commit is contained in:
Oscar Guindzberg 2020-09-17 16:35:07 -03:00
parent 0d25ca1381
commit 24da46879f
No known key found for this signature in database
GPG key ID: 209796BF2E1D4F75

View file

@ -494,8 +494,10 @@ public class WalletConfig extends AbstractIdleService {
kcg.fromSeed(restoreFromSeed, preferredOutputScriptType).build();
else if (restoreFromKey != null)
kcg.addChain(DeterministicKeyChain.builder().spend(restoreFromKey).outputScriptType(preferredOutputScriptType).build());
else
else if (!isBsqWallet)
kcg.fromRandom(preferredOutputScriptType);
else
kcg.fromSeed(vBtcWallet.getKeyChainSeed(), preferredOutputScriptType);
if (walletFactory != null) {
return walletFactory.create(params, kcg.build());
} else {