mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +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() {
|
||||
KeyChainGroup.Builder kcg = KeyChainGroup.builder(params, structure);
|
||||
if (restoreFromSeed != null)
|
||||
kcg.addChain(DeterministicKeyChain.builder().seed(restoreFromSeed).outputScriptType(preferredOutputScriptType).build());
|
||||
kcg.fromSeed(restoreFromSeed, preferredOutputScriptType).build();
|
||||
else if (restoreFromKey != null)
|
||||
kcg.addChain(DeterministicKeyChain.builder().spend(restoreFromKey).outputScriptType(preferredOutputScriptType).build());
|
||||
else
|
||||
|
Reference in New Issue
Block a user