From d426703dcc9d5dc170528abd12bc948933ee2872 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 11 Feb 2025 13:18:21 +0200 Subject: [PATCH] fix account discovery on bitbox02 --- src/main/java/com/sparrowwallet/sparrow/AppServices.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppServices.java b/src/main/java/com/sparrowwallet/sparrow/AppServices.java index b9f08ad2..ea719b55 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppServices.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppServices.java @@ -1123,7 +1123,8 @@ public class AppServices { public static boolean isWhirlpoolPostmixCompatible(Wallet wallet) { return WHIRLPOOL_NETWORKS.contains(Network.get()) && wallet.getScriptType() != ScriptType.P2TR //Taproot not yet supported - && wallet.getKeystores().size() == 1; + && wallet.getKeystores().size() == 1 + && wallet.getKeystores().getFirst().getWalletModel() != WalletModel.BITBOX_02; //BitBox02 does not support high account numbers } public static List addWhirlpoolWallets(Wallet decryptedWallet, String walletId, Storage storage) {