mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-01 21:17:13 +00:00
WalletAppKit: Fix when restoring from seed, the fallback chain isn't created.
This commit is contained in:
@@ -450,7 +450,7 @@ public class WalletAppKit extends AbstractIdleService {
|
|||||||
protected Wallet createWallet() {
|
protected Wallet createWallet() {
|
||||||
KeyChainGroup.Builder kcg = KeyChainGroup.builder(params, structure);
|
KeyChainGroup.Builder kcg = KeyChainGroup.builder(params, structure);
|
||||||
if (restoreFromSeed != null)
|
if (restoreFromSeed != null)
|
||||||
kcg.addChain(DeterministicKeyChain.builder().seed(restoreFromSeed).outputScriptType(preferredOutputScriptType).build());
|
kcg.fromSeed(restoreFromSeed, preferredOutputScriptType).build();
|
||||||
else if (restoreFromKey != null)
|
else if (restoreFromKey != null)
|
||||||
kcg.addChain(DeterministicKeyChain.builder().spend(restoreFromKey).outputScriptType(preferredOutputScriptType).build());
|
kcg.addChain(DeterministicKeyChain.builder().spend(restoreFromKey).outputScriptType(preferredOutputScriptType).build());
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user