mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
bugfix: When creating a new BSQ wallet, use the BTC wallet seed
This commit is contained in:
parent
0d25ca1381
commit
24da46879f
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue