mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 12:26:45 +00:00
followup to reducing server calls on loading transaction tab
This commit is contained in:
parent
ad1ecfb887
commit
1b460533f5
1 changed files with 1 additions and 6 deletions
|
@ -434,13 +434,8 @@ public class TransactionController implements Initializable {
|
|||
}
|
||||
|
||||
Map<Script, WalletNode> 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++) {
|
||||
|
|
Loading…
Reference in a new issue