diff --git a/drongo b/drongo index fefebbab..9ae1f68d 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit fefebbabb5202330de028abe05344a91cf602018 +Subproject commit 9ae1f68dc42529085edcc8c10d9bcfdbf9639448 diff --git a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java index 337241bc..9c3077f1 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java @@ -659,7 +659,7 @@ public class TransactionDiagram extends GridPane { recipientLabel.getStyleClass().add("output-label"); recipientLabel.getStyleClass().add(labelledPayment ? "payment-label" : "recipient-label"); Wallet toWallet = getToWallet(payment); - WalletNode toNode = walletTx.getWallet() != null && !walletTx.getWallet().isBip47() ? walletTx.getAddressNodeMap(walletTx.getWallet()).get(payment.getAddress()) : null; + WalletNode toNode = walletTx.getWallet() != null && !walletTx.getWallet().isBip47() ? walletTx.getAddressNodeMap().get(payment.getAddress()) : null; Wallet toBip47Wallet = getBip47SendWallet(payment); Tooltip recipientTooltip = new Tooltip((toWallet == null ? (toNode != null ? "Consolidate " : "Pay ") : "Receive ") + getSatsValue(payment.getAmount()) + " sats to " diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java index 7fe36ac6..e9e2ec87 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java @@ -1173,7 +1173,7 @@ public class SendController extends WalletFormController implements Initializabl WalletTransaction walletTransaction = walletTransactionProperty.get(); Set nodes = new LinkedHashSet<>(walletTransaction.getSelectedUtxos().values()); nodes.addAll(walletTransaction.getChangeMap().keySet()); - Map addressNodeMap = walletTransaction.getAddressNodeMap(walletTransaction.getWallet()); + Map addressNodeMap = walletTransaction.getAddressNodeMap(); nodes.addAll(addressNodeMap.values().stream().filter(Objects::nonNull).collect(Collectors.toList())); //All wallet nodes applicable to this transaction are stored so when the subscription status for one is updated, the history for all can be fetched in one atomic update @@ -1646,7 +1646,7 @@ public class SendController extends WalletFormController implements Initializabl public PrivacyAnalysisTooltip(WalletTransaction walletTransaction) { List payments = walletTransaction.getPayments(); List userPayments = payments.stream().filter(payment -> payment.getType() != Payment.Type.FAKE_MIX).collect(Collectors.toList()); - Map walletAddresses = walletTransaction.getAddressNodeMap(walletTransaction.getWallet()); + Map walletAddresses = walletTransaction.getAddressNodeMap(); OptimizationStrategy optimizationStrategy = getPreferredOptimizationStrategy(); boolean payNymPresent = isPayNymMixOnlyPayment(payments); boolean fakeMixPresent = payments.stream().anyMatch(payment -> payment.getType() == Payment.Type.FAKE_MIX);