Update CaravanMultisig.java

Reversing changes to original PR.
This commit is contained in:
jevidon 2024-05-03 10:55:14 -05:00 committed by GitHub
parent c42a7fd388
commit debeb82757
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,6 +55,10 @@ public class CaravanMultisig implements WalletImport, WalletExport {
for(ExtPublicKey extKey : cf.extendedPublicKeys) { 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); 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 { try {
keystore.setKeyDerivation(new KeyDerivation(extKey.xfp, extKey.bip32Path)); keystore.setKeyDerivation(new KeyDerivation(extKey.xfp, extKey.bip32Path));
} catch(NumberFormatException e) { } catch(NumberFormatException e) {