From debeb8275720f8c0900c7a9138d0f5efe762ecad Mon Sep 17 00:00:00 2001 From: jevidon Date: Fri, 3 May 2024 10:55:14 -0500 Subject: [PATCH] Update CaravanMultisig.java Reversing changes to original PR. --- .../java/com/sparrowwallet/sparrow/io/CaravanMultisig.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/io/CaravanMultisig.java b/src/main/java/com/sparrowwallet/sparrow/io/CaravanMultisig.java index 432a6920..3e73e676 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/CaravanMultisig.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/CaravanMultisig.java @@ -55,6 +55,10 @@ public class CaravanMultisig implements WalletImport, WalletExport { for(ExtPublicKey extKey : cf.extendedPublicKeys) { Keystore keystore = new Keystore(extKey.name.length() > Keystore.MAX_LABEL_LENGTH ? extKey.name.substring(0, Keystore.MAX_LABEL_LENGTH) : extKey.name); + if("Unknown".equals(extKey.bip32Path)) { + extKey.bip32Path = "m/0/0/0/0"; + } + try { keystore.setKeyDerivation(new KeyDerivation(extKey.xfp, extKey.bip32Path)); } catch(NumberFormatException e) {