mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-04-08 03:48:23 +02:00
dont add change node if no change present
This commit is contained in:
parent
3a4d385560
commit
9f5eb41d90
@ -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…
x
Reference in New Issue
Block a user