Skip to content

Commit

Permalink
bugfix: When creating a new BSQ wallet, use the BTC wallet seed
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarguindzberg committed Sep 17, 2020
1 parent 36219de commit 7bdae1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/bisq/core/btc/setup/WalletConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,10 @@ protected Wallet createWallet(boolean isBsqWallet) {
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 {
Expand Down

0 comments on commit 7bdae1b

Please sign in to comment.