From 1b460533f5e3cbf4684c56104342394fdfce4c7c Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 17 Jan 2024 10:48:57 +0200 Subject: [PATCH] followup to reducing server calls on loading transaction tab --- .../sparrow/transaction/TransactionController.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java index 4ab72f74..ada0466f 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java @@ -434,13 +434,8 @@ public class TransactionController implements Initializable { } Map openWalletOutputScripts = new HashMap<>(); - for(Wallet wallet : AppServices.get().getOpenWallets().keySet()) { + for(Wallet wallet : AppServices.get().getOpenWallets().keySet().stream().filter(Wallet::isValid).collect(Collectors.toList())) { openWalletOutputScripts.putAll(wallet.getWalletOutputScripts()); - for(Wallet childWallet : wallet.getChildWallets()) { - if(!childWallet.isNested()) { - openWalletOutputScripts.putAll(childWallet.getWalletOutputScripts()); - } - } } for(int i = indexStart; i < getTransaction().getOutputs().size() && i < maxIndex; i++) {