Browse Source

dont add change node if no change present

bwt
Craig Raw 4 years ago
parent
commit
9f5eb41d90
  1. 4
      src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java

4
src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java

@ -598,7 +598,9 @@ public class SendController extends WalletFormController implements Initializabl
private void addWalletTransactionNodes() {
WalletTransaction walletTransaction = walletTransactionProperty.get();
Set<WalletNode> nodes = new LinkedHashSet<>(walletTransaction.getSelectedUtxos().values());
nodes.add(walletTransaction.getChangeNode());
if(walletTransaction.getChangeNode() != null) {
nodes.add(walletTransaction.getChangeNode());
}
List<WalletNode> consolidationNodes = walletTransaction.getConsolidationSendNodes();
nodes.addAll(consolidationNodes);

Loading…
Cancel
Save