From 923c61fcebd01fea6c1f26cb26ea818fb918d8f9 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 14 Sep 2022 11:15:15 +0200 Subject: [PATCH] fix import of electrum wallet without keystore labels --- src/main/java/com/sparrowwallet/sparrow/io/Electrum.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java b/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java index f9732efb..d86c06f5 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java @@ -193,6 +193,7 @@ public class Electrum implements KeystoreFileImport, WalletImport, WalletExport keystore.setLabel(keystore.getLabel().substring(0, Keystore.MAX_LABEL_LENGTH)); } + wallet.makeLabelsUnique(keystore); wallet.getKeystores().add(keystore); ExtendedKey.Header xpubHeader = ExtendedKey.Header.fromExtendedKey(ek.xpub);