fix import of electrum wallet without keystore labels

This commit is contained in:
Craig Raw 2022-09-14 11:15:15 +02:00
parent d3d939889e
commit 923c61fceb

View file

@ -193,6 +193,7 @@ public class Electrum implements KeystoreFileImport, WalletImport, WalletExport
keystore.setLabel(keystore.getLabel().substring(0, Keystore.MAX_LABEL_LENGTH)); keystore.setLabel(keystore.getLabel().substring(0, Keystore.MAX_LABEL_LENGTH));
} }
wallet.makeLabelsUnique(keystore);
wallet.getKeystores().add(keystore); wallet.getKeystores().add(keystore);
ExtendedKey.Header xpubHeader = ExtendedKey.Header.fromExtendedKey(ek.xpub); ExtendedKey.Header xpubHeader = ExtendedKey.Header.fromExtendedKey(ek.xpub);